fluent-cerner-js 1.0.0-0 → 1.0.0-2

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.
Files changed (44) hide show
  1. package/dist/createNewDocumentAsync.d.ts +6 -6
  2. package/dist/fluent-cerner-js.cjs.development.js +195 -214
  3. package/dist/fluent-cerner-js.cjs.development.js.map +1 -1
  4. package/dist/fluent-cerner-js.cjs.production.min.js +1 -1
  5. package/dist/fluent-cerner-js.cjs.production.min.js.map +1 -1
  6. package/dist/fluent-cerner-js.esm.js +195 -214
  7. package/dist/fluent-cerner-js.esm.js.map +1 -1
  8. package/dist/index.d.ts +23 -21
  9. package/dist/launchClinicalNoteAsync.d.ts +3 -18
  10. package/dist/launchPowerFormAsync.d.ts +0 -2
  11. package/dist/launchPowerNoteAsync.d.ts +0 -4
  12. package/dist/makeCclRequestAsync.d.ts +2 -1
  13. package/dist/manageAppointmentAsync.d.ts +0 -1
  14. package/dist/openApplicationAsync.d.ts +1 -1
  15. package/dist/openOrganizerTabAsync.d.ts +0 -1
  16. package/dist/openPatientTabAsync.d.ts +0 -2
  17. package/dist/openWebsiteByUrlAsync.d.ts +0 -1
  18. package/dist/submitOrdersAsync.d.ts +2 -10
  19. package/dist/submitPowerOrdersAsync.d.ts +11 -16
  20. package/dist/utils/createOrderString.d.ts +3 -3
  21. package/package.json +1 -1
  22. package/src/createNewDocumentAsync.ts +6 -6
  23. package/src/index.ts +24 -21
  24. package/src/launchClinicalNoteAsync.ts +3 -18
  25. package/src/launchPowerFormAsync.ts +0 -2
  26. package/src/launchPowerNoteAsync.ts +0 -4
  27. package/src/makeCclRequestAsync.ts +49 -24
  28. package/src/manageAppointmentAsync.spec.ts +0 -5
  29. package/src/manageAppointmentAsync.ts +0 -7
  30. package/src/openApplicationAsync.spec.ts +11 -15
  31. package/src/openApplicationAsync.ts +2 -6
  32. package/src/openOrganizerTabAsync.spec.ts +21 -25
  33. package/src/openOrganizerTabAsync.ts +0 -1
  34. package/src/openPatientTabAsync.spec.ts +20 -24
  35. package/src/openPatientTabAsync.ts +0 -2
  36. package/src/openWebsiteByUrlAsync.spec.ts +10 -0
  37. package/src/openWebsiteByUrlAsync.ts +4 -2
  38. package/src/submitOrdersAsync.ts +2 -10
  39. package/src/submitPowerOrdersAsync.spec.ts +5 -5
  40. package/src/submitPowerOrdersAsync.ts +36 -88
  41. package/src/utils/addPowerPlanWithDetailsAsync.spec.ts +1 -1
  42. package/src/utils/addPowerPlanWithDetailsAsync.ts +13 -9
  43. package/src/utils/createOrderString.ts +4 -4
  44. package/src/utils/index.ts +4 -8
@@ -4,12 +4,12 @@ import { PowerChartReturn } from '.';
4
4
  * DYNDOC Discern COM object. The document can be created using either
5
5
  * a reference template ID or a reference template ID and an optional note type code,
6
6
  * depending on the chosen method of 'by workflow' or 'by reference template'.
7
- * @param method {'by workflow' | 'by reference template'} - the method to use to create the document.
8
- * @param patientId {number} - the patient ID to launch the document for.
9
- * @param encounterId {number} - the encounter ID to launch the document in.
10
- * @param id {number} - the ID of the reference template or workflow to use to create the document.
11
- * @param noteTypeCd {number} - (optional) the note type code to use to create the document.
12
- * @resolves `PowerChartReturn & { success: boolean }`
7
+ * @param {'by workflow' | 'by reference template'} method - the method to use to create the document.
8
+ * @param {number} patientId - the patient ID to launch the document for.
9
+ * @param {number} encounterId - the encounter ID to launch the document in.
10
+ * @param {number} id - the ID of the reference template or workflow to use to create the document.
11
+ * @param {number} noteTypeCd - (optional) the note type code to use to create the document.
12
+ * @rejects `PowerChartReturn & { success: boolean }`
13
13
  * @throws {Error} - an error is thrown if the method provided as an argument is not supported.
14
14
  */
15
15
  export declare function createNewDocumentAsync(method: 'by workflow' | 'by reference template', patientId: number, encounterId: number, id: number, noteTypeCd?: number): Promise<PowerChartReturn & {