@metriport/shared 0.33.0 → 0.33.1
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/__tests__/env-setup.js +17 -7
- package/dist/__tests__/env-setup.js.map +1 -1
- package/dist/common/__tests__/demographics.test.js +59 -3
- package/dist/common/__tests__/demographics.test.js.map +1 -1
- package/dist/common/__tests__/npi.js +1 -2
- package/dist/common/__tests__/npi.js.map +1 -1
- package/dist/common/__tests__/oid.js +1 -2
- package/dist/common/__tests__/oid.js.map +1 -1
- package/dist/common/__tests__/retry.test.js.map +1 -1
- package/dist/common/__tests__/string.test.js +24 -0
- package/dist/common/__tests__/string.test.js.map +1 -1
- package/dist/common/__tests__/validate-npi.test.js.map +1 -1
- package/dist/common/array.js +1 -2
- package/dist/common/array.js.map +1 -1
- package/dist/common/boolean.js +2 -3
- package/dist/common/boolean.js.map +1 -1
- package/dist/common/date.js +18 -18
- package/dist/common/date.js.map +1 -1
- package/dist/common/demographics.d.ts +3 -3
- package/dist/common/demographics.d.ts.map +1 -1
- package/dist/common/demographics.js +26 -19
- package/dist/common/demographics.js.map +1 -1
- package/dist/common/duration.js +1 -2
- package/dist/common/duration.js.map +1 -1
- package/dist/common/email.js +1 -2
- package/dist/common/email.js.map +1 -1
- package/dist/common/env-var.js +7 -7
- package/dist/common/env-var.js.map +1 -1
- package/dist/common/filter-map.js +1 -2
- package/dist/common/filter-map.js.map +1 -1
- package/dist/common/general.d.ts +4 -0
- package/dist/common/general.d.ts.map +1 -1
- package/dist/common/general.js +8 -2
- package/dist/common/general.js.map +1 -1
- package/dist/common/html.js +1 -2
- package/dist/common/html.js.map +1 -1
- package/dist/common/merge-settings.js +1 -2
- package/dist/common/merge-settings.js.map +1 -1
- package/dist/common/net.js +1 -2
- package/dist/common/net.js.map +1 -1
- package/dist/common/normalize-oid.js +2 -3
- package/dist/common/normalize-oid.js.map +1 -1
- package/dist/common/numbers.js +6 -7
- package/dist/common/numbers.js.map +1 -1
- package/dist/common/purpose-of-use.d.ts +13 -0
- package/dist/common/purpose-of-use.d.ts.map +1 -1
- package/dist/common/purpose-of-use.js +18 -2
- package/dist/common/purpose-of-use.js.map +1 -1
- package/dist/common/response.js +2 -3
- package/dist/common/response.js.map +1 -1
- package/dist/common/retry.js +4 -4
- package/dist/common/retry.js.map +1 -1
- package/dist/common/sleep.js +2 -3
- package/dist/common/sleep.js.map +1 -1
- package/dist/common/string.d.ts +6 -0
- package/dist/common/string.d.ts.map +1 -1
- package/dist/common/string.js +14 -6
- package/dist/common/string.js.map +1 -1
- package/dist/common/timer.d.ts.map +1 -1
- package/dist/common/timer.js +1 -2
- package/dist/common/timer.js.map +1 -1
- package/dist/common/title-case.js +2 -3
- package/dist/common/title-case.js.map +1 -1
- package/dist/common/types.js +2 -3
- package/dist/common/types.js.map +1 -1
- package/dist/common/uuid.js +1 -2
- package/dist/common/uuid.js.map +1 -1
- package/dist/common/validate-npi.js +1 -2
- package/dist/common/validate-npi.js.map +1 -1
- package/dist/common/xml-parser.js +1 -2
- package/dist/common/xml-parser.js.map +1 -1
- package/dist/common/zod.js.map +1 -1
- package/dist/domain/__tests__/dob.test.js.map +1 -1
- package/dist/domain/__tests__/gender.test.js.map +1 -1
- package/dist/domain/address/__tests__/country.test.js.map +1 -1
- package/dist/domain/address/__tests__/state.test.js.map +1 -1
- package/dist/domain/address/__tests__/territory.test.js.map +1 -1
- package/dist/domain/address/__tests__/zip.test.js +5 -5
- package/dist/domain/address/__tests__/zip.test.js.map +1 -1
- package/dist/domain/address/city.js +1 -2
- package/dist/domain/address/city.js.map +1 -1
- package/dist/domain/address/country.js +3 -3
- package/dist/domain/address/country.js.map +1 -1
- package/dist/domain/address/index.js +2 -3
- package/dist/domain/address/index.js.map +1 -1
- package/dist/domain/address/state.js +6 -6
- package/dist/domain/address/state.js.map +1 -1
- package/dist/domain/address/territory.js +4 -4
- package/dist/domain/address/territory.js.map +1 -1
- package/dist/domain/address/zip.js +7 -7
- package/dist/domain/address/zip.js.map +1 -1
- package/dist/domain/baseDto.js +1 -2
- package/dist/domain/baseDto.js.map +1 -1
- package/dist/domain/cohort.d.ts +14 -11
- package/dist/domain/cohort.d.ts.map +1 -1
- package/dist/domain/cohort.js +14 -11
- package/dist/domain/cohort.js.map +1 -1
- package/dist/domain/consolidated/ai-brief-cache-mode.d.ts +11 -0
- package/dist/domain/consolidated/ai-brief-cache-mode.d.ts.map +1 -0
- package/dist/domain/consolidated/ai-brief-cache-mode.js +17 -0
- package/dist/domain/consolidated/ai-brief-cache-mode.js.map +1 -0
- package/dist/domain/consolidated/filename.d.ts +4 -0
- package/dist/domain/consolidated/filename.d.ts.map +1 -0
- package/dist/domain/consolidated/filename.js +7 -0
- package/dist/domain/consolidated/filename.js.map +1 -0
- package/dist/domain/consolidated/index.d.ts +4 -0
- package/dist/domain/consolidated/index.d.ts.map +1 -0
- package/dist/domain/consolidated/index.js +20 -0
- package/dist/domain/consolidated/index.js.map +1 -0
- package/dist/domain/consolidated/recreate/event-type.d.ts +7 -0
- package/dist/domain/consolidated/recreate/event-type.d.ts.map +1 -0
- package/dist/domain/consolidated/recreate/event-type.js +11 -0
- package/dist/domain/consolidated/recreate/event-type.js.map +1 -0
- package/dist/domain/consolidated/recreate/index.d.ts +3 -0
- package/dist/domain/consolidated/recreate/index.d.ts.map +1 -0
- package/dist/domain/consolidated/recreate/index.js +19 -0
- package/dist/domain/consolidated/recreate/index.js.map +1 -0
- package/dist/domain/consolidated/recreate/supported-event-types.d.ts +8 -0
- package/dist/domain/consolidated/recreate/supported-event-types.d.ts.map +1 -0
- package/dist/domain/consolidated/recreate/supported-event-types.js +26 -0
- package/dist/domain/consolidated/recreate/supported-event-types.js.map +1 -0
- package/dist/domain/contact/__tests__/phone.test.js.map +1 -1
- package/dist/domain/contact/email.js +9 -9
- package/dist/domain/contact/email.js.map +1 -1
- package/dist/domain/contact/phone.js +7 -7
- package/dist/domain/contact/phone.js.map +1 -1
- package/dist/domain/cql-engine/transform.d.ts +2 -2
- package/dist/domain/cql-engine/transform.js.map +1 -1
- package/dist/domain/cursor-utils.js +3 -4
- package/dist/domain/cursor-utils.js.map +1 -1
- package/dist/domain/customer.d.ts +30 -24
- package/dist/domain/customer.d.ts.map +1 -1
- package/dist/domain/customer.js +6 -1
- package/dist/domain/customer.js.map +1 -1
- package/dist/domain/db.d.ts +10 -5
- package/dist/domain/db.d.ts.map +1 -1
- package/dist/domain/db.js +20 -1
- package/dist/domain/db.js.map +1 -1
- package/dist/domain/dob.js +2 -3
- package/dist/domain/dob.js.map +1 -1
- package/dist/domain/externalId.js +1 -2
- package/dist/domain/externalId.js.map +1 -1
- package/dist/domain/gender.js +3 -3
- package/dist/domain/gender.js.map +1 -1
- package/dist/domain/job/job-status.d.ts.map +1 -1
- package/dist/domain/job/job-status.js +4 -4
- package/dist/domain/job/job-status.js.map +1 -1
- package/dist/domain/job/patient-job.d.ts.map +1 -1
- package/dist/domain/job/types.d.ts.map +1 -1
- package/dist/domain/job/types.js +2 -2
- package/dist/domain/job/types.js.map +1 -1
- package/dist/domain/metriport.d.ts.map +1 -1
- package/dist/domain/network-query/__tests__/source.test.js +13 -13
- package/dist/domain/network-query/__tests__/source.test.js.map +1 -1
- package/dist/domain/network-query/index.d.ts +1 -0
- package/dist/domain/network-query/index.d.ts.map +1 -1
- package/dist/domain/network-query/index.js +1 -0
- package/dist/domain/network-query/index.js.map +1 -1
- package/dist/domain/network-query/query.d.ts +308 -8
- package/dist/domain/network-query/query.d.ts.map +1 -1
- package/dist/domain/network-query/query.js +6 -2
- package/dist/domain/network-query/query.js.map +1 -1
- package/dist/domain/network-query/source.d.ts +439 -30
- package/dist/domain/network-query/source.d.ts.map +1 -1
- package/dist/domain/network-query/source.js +132 -18
- package/dist/domain/network-query/source.js.map +1 -1
- package/dist/domain/network-query/supported-event-types.d.ts +18 -0
- package/dist/domain/network-query/supported-event-types.d.ts.map +1 -0
- package/dist/domain/network-query/supported-event-types.js +60 -0
- package/dist/domain/network-query/supported-event-types.js.map +1 -0
- package/dist/domain/notification-webhooks/index.d.ts +2 -0
- package/dist/domain/notification-webhooks/index.d.ts.map +1 -0
- package/dist/domain/notification-webhooks/index.js +18 -0
- package/dist/domain/notification-webhooks/index.js.map +1 -0
- package/dist/domain/notification-webhooks/types.d.ts +29 -0
- package/dist/domain/notification-webhooks/types.d.ts.map +1 -0
- package/dist/domain/notification-webhooks/types.js +17 -0
- package/dist/domain/notification-webhooks/types.js.map +1 -0
- package/dist/domain/organization.d.ts +20 -20
- package/dist/domain/organization.js +2 -2
- package/dist/domain/organization.js.map +1 -1
- package/dist/domain/pagination-v2.d.ts +24 -24
- package/dist/domain/pagination-v2.d.ts.map +1 -1
- package/dist/domain/pagination-v2.js +2 -2
- package/dist/domain/pagination-v2.js.map +1 -1
- package/dist/domain/pagination.d.ts +2 -2
- package/dist/domain/pagination.js +2 -2
- package/dist/domain/pagination.js.map +1 -1
- package/dist/domain/patient/__tests__/ssn.test.js.map +1 -1
- package/dist/domain/patient/patient-import/__tests__/status.test.js.map +1 -1
- package/dist/domain/patient/patient-import/__tests__/types.js +2 -3
- package/dist/domain/patient/patient-import/__tests__/types.js.map +1 -1
- package/dist/domain/patient/patient-import/create.js +2 -2
- package/dist/domain/patient/patient-import/create.js.map +1 -1
- package/dist/domain/patient/patient-import/metadata.js +2 -3
- package/dist/domain/patient/patient-import/metadata.js.map +1 -1
- package/dist/domain/patient/patient-import/schemas.d.ts +5 -5
- package/dist/domain/patient/patient-import/status.d.ts.map +1 -1
- package/dist/domain/patient/patient-import/status.js +3 -3
- package/dist/domain/patient/patient-import/status.js.map +1 -1
- package/dist/domain/patient/patient-import/types.d.ts.map +1 -1
- package/dist/domain/patient/patient-import/types.js +3 -3
- package/dist/domain/patient/patient-import/types.js.map +1 -1
- package/dist/domain/patient/patient-monitoring/discharge-requery.d.ts +137 -4
- package/dist/domain/patient/patient-monitoring/discharge-requery.d.ts.map +1 -1
- package/dist/domain/patient/patient-monitoring/discharge-requery.js +13 -3
- package/dist/domain/patient/patient-monitoring/discharge-requery.js.map +1 -1
- package/dist/domain/patient/patient-monitoring/utils.d.ts +19 -2
- package/dist/domain/patient/patient-monitoring/utils.d.ts.map +1 -1
- package/dist/domain/patient/patient-monitoring/utils.js +26 -10
- package/dist/domain/patient/patient-monitoring/utils.js.map +1 -1
- package/dist/domain/patient/patient-settings.d.ts +4 -4
- package/dist/domain/patient/patient-settings.js.map +1 -1
- package/dist/domain/patient/ssn.js +2 -3
- package/dist/domain/patient/ssn.js.map +1 -1
- package/dist/domain/patient-or-all.js +2 -2
- package/dist/domain/patient-or-all.js.map +1 -1
- package/dist/domain/patient.d.ts +24 -24
- package/dist/domain/rate-limiting/index.d.ts +1 -1
- package/dist/domain/rate-limiting/index.d.ts.map +1 -1
- package/dist/domain/rate-limiting/index.js +12 -3
- package/dist/domain/rate-limiting/index.js.map +1 -1
- package/dist/domain/roster/patient-roster-added-by.d.ts +6 -0
- package/dist/domain/roster/patient-roster-added-by.d.ts.map +1 -0
- package/dist/domain/roster/patient-roster-added-by.js +19 -0
- package/dist/domain/roster/patient-roster-added-by.js.map +1 -0
- package/dist/domain/roster/patient-roster.d.ts +5 -1
- package/dist/domain/roster/patient-roster.d.ts.map +1 -1
- package/dist/domain/roster/roster-status.d.ts.map +1 -1
- package/dist/domain/roster/roster-status.js +5 -5
- package/dist/domain/roster/roster-status.js.map +1 -1
- package/dist/domain/tcm-encounter.d.ts +74 -74
- package/dist/domain/tcm-encounter.d.ts.map +1 -1
- package/dist/domain/tcm-encounter.js.map +1 -1
- package/dist/error/bad-request.d.ts.map +1 -1
- package/dist/error/bad-request.js.map +1 -1
- package/dist/error/metriport-error.d.ts.map +1 -1
- package/dist/error/metriport-error.js +2 -2
- package/dist/error/metriport-error.js.map +1 -1
- package/dist/error/not-found.d.ts.map +1 -1
- package/dist/error/not-found.js.map +1 -1
- package/dist/error/shared.js +5 -6
- package/dist/error/shared.js.map +1 -1
- package/dist/error/too-many-requests.d.ts.map +1 -1
- package/dist/error/too-many-requests.js.map +1 -1
- package/dist/external/ehr/practicefusion/shared.js +1 -2
- package/dist/external/ehr/practicefusion/shared.js.map +1 -1
- package/dist/external/hl7v2/constants.d.ts +8 -1
- package/dist/external/hl7v2/constants.d.ts.map +1 -1
- package/dist/external/hl7v2/constants.js +22 -2
- package/dist/external/hl7v2/constants.js.map +1 -1
- package/dist/external/ihe/constants.d.ts.map +1 -1
- package/dist/external/ihe/constants.js +50 -50
- package/dist/external/ihe/constants.js.map +1 -1
- package/dist/external/ihe/shared.js +4 -5
- package/dist/external/ihe/shared.js.map +1 -1
- package/dist/external/zod/__tests__/iso-date.test.js +32 -32
- package/dist/external/zod/__tests__/iso-date.test.js.map +1 -1
- package/dist/external/zod/date.js +2 -2
- package/dist/external/zod/date.js.map +1 -1
- package/dist/external/zod/string.d.ts +4 -4
- package/dist/external/zod/string.d.ts.map +1 -1
- package/dist/external/zod/string.js +4 -4
- package/dist/external/zod/string.js.map +1 -1
- package/dist/external/zod/us-state.js +1 -2
- package/dist/external/zod/us-state.js.map +1 -1
- package/dist/index.d.ts +15 -12
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +35 -20
- package/dist/index.js.map +1 -1
- package/dist/interface/external/ehr/athenahealth/allergy.d.ts +12 -12
- package/dist/interface/external/ehr/athenahealth/allergy.js.map +1 -1
- package/dist/interface/external/ehr/athenahealth/appointment.d.ts +12 -12
- package/dist/interface/external/ehr/athenahealth/appointment.js.map +1 -1
- package/dist/interface/external/ehr/athenahealth/cx-mapping.d.ts +51 -51
- package/dist/interface/external/ehr/athenahealth/department.js.map +1 -1
- package/dist/interface/external/ehr/athenahealth/encounter.d.ts +4 -4
- package/dist/interface/external/ehr/athenahealth/family-history.d.ts +52 -52
- package/dist/interface/external/ehr/athenahealth/jwt-token.d.ts +4 -4
- package/dist/interface/external/ehr/athenahealth/jwt-token.js.map +1 -1
- package/dist/interface/external/ehr/athenahealth/patient.js.map +1 -1
- package/dist/interface/external/ehr/canvas/allergen.d.ts +2 -2
- package/dist/interface/external/ehr/canvas/appointment.d.ts +32 -32
- package/dist/interface/external/ehr/canvas/appointment.js.map +1 -1
- package/dist/interface/external/ehr/canvas/cx-mapping.d.ts +49 -52
- package/dist/interface/external/ehr/canvas/cx-mapping.d.ts.map +1 -1
- package/dist/interface/external/ehr/canvas/cx-mapping.js +0 -1
- package/dist/interface/external/ehr/canvas/cx-mapping.js.map +1 -1
- package/dist/interface/external/ehr/canvas/external-event.d.ts +4 -4
- package/dist/interface/external/ehr/canvas/external-event.d.ts.map +1 -1
- package/dist/interface/external/ehr/canvas/external-event.js.map +1 -1
- package/dist/interface/external/ehr/canvas/jwt-token.d.ts +8 -8
- package/dist/interface/external/ehr/canvas/jwt-token.js.map +1 -1
- package/dist/interface/external/ehr/canvas/note.js.map +1 -1
- package/dist/interface/external/ehr/eclinicalworks/cx-mapping.d.ts +49 -49
- package/dist/interface/external/ehr/eclinicalworks/jwt-token.d.ts +2 -2
- package/dist/interface/external/ehr/eclinicalworks/jwt-token.js.map +1 -1
- package/dist/interface/external/ehr/elation/appointment.d.ts +8 -8
- package/dist/interface/external/ehr/elation/appointment.js.map +1 -1
- package/dist/interface/external/ehr/elation/cx-mapping.d.ts +55 -55
- package/dist/interface/external/ehr/elation/event.d.ts +25 -25
- package/dist/interface/external/ehr/elation/jwt-token.d.ts +4 -4
- package/dist/interface/external/ehr/elation/jwt-token.js.map +1 -1
- package/dist/interface/external/ehr/elation/patient.d.ts +18 -18
- package/dist/interface/external/ehr/elation/practice.d.ts +6 -6
- package/dist/interface/external/ehr/elation/practice.js.map +1 -1
- package/dist/interface/external/ehr/elation/subscription.d.ts +8 -8
- package/dist/interface/external/ehr/elation/subscription.d.ts.map +1 -1
- package/dist/interface/external/ehr/elation/subscription.js +2 -2
- package/dist/interface/external/ehr/elation/subscription.js.map +1 -1
- package/dist/interface/external/ehr/embed/jwt-token.d.ts +2 -2
- package/dist/interface/external/ehr/embed/jwt-token.js.map +1 -1
- package/dist/interface/external/ehr/fhir-resource.d.ts +38 -38
- package/dist/interface/external/ehr/fhir-resource.js +4 -4
- package/dist/interface/external/ehr/fhir-resource.js.map +1 -1
- package/dist/interface/external/ehr/healthie/allergy.d.ts +64 -64
- package/dist/interface/external/ehr/healthie/allergy.js.map +1 -1
- package/dist/interface/external/ehr/healthie/appointment.js.map +1 -1
- package/dist/interface/external/ehr/healthie/condition.d.ts +10 -10
- package/dist/interface/external/ehr/healthie/condition.js.map +1 -1
- package/dist/interface/external/ehr/healthie/cx-mapping.d.ts +485 -60
- package/dist/interface/external/ehr/healthie/cx-mapping.d.ts.map +1 -1
- package/dist/interface/external/ehr/healthie/cx-mapping.js +20 -4
- package/dist/interface/external/ehr/healthie/cx-mapping.js.map +1 -1
- package/dist/interface/external/ehr/healthie/event.d.ts +18 -4
- package/dist/interface/external/ehr/healthie/event.d.ts.map +1 -1
- package/dist/interface/external/ehr/healthie/event.js +6 -1
- package/dist/interface/external/ehr/healthie/event.js.map +1 -1
- package/dist/interface/external/ehr/healthie/form-answer-group.d.ts +605 -0
- package/dist/interface/external/ehr/healthie/form-answer-group.d.ts.map +1 -0
- package/dist/interface/external/ehr/healthie/form-answer-group.js +51 -0
- package/dist/interface/external/ehr/healthie/form-answer-group.js.map +1 -0
- package/dist/interface/external/ehr/healthie/immunization.js.map +1 -1
- package/dist/interface/external/ehr/healthie/index.d.ts +1 -0
- package/dist/interface/external/ehr/healthie/index.d.ts.map +1 -1
- package/dist/interface/external/ehr/healthie/index.js +1 -0
- package/dist/interface/external/ehr/healthie/index.js.map +1 -1
- package/dist/interface/external/ehr/healthie/jwt-token.d.ts +2 -2
- package/dist/interface/external/ehr/healthie/jwt-token.js.map +1 -1
- package/dist/interface/external/ehr/healthie/lab.d.ts +64 -64
- package/dist/interface/external/ehr/healthie/lab.js.map +1 -1
- package/dist/interface/external/ehr/healthie/medication.d.ts +52 -52
- package/dist/interface/external/ehr/healthie/medication.js.map +1 -1
- package/dist/interface/external/ehr/healthie/patient.d.ts +145 -106
- package/dist/interface/external/ehr/healthie/patient.d.ts.map +1 -1
- package/dist/interface/external/ehr/healthie/patient.js +9 -6
- package/dist/interface/external/ehr/healthie/patient.js.map +1 -1
- package/dist/interface/external/ehr/healthie/subscription.d.ts +30 -21
- package/dist/interface/external/ehr/healthie/subscription.d.ts.map +1 -1
- package/dist/interface/external/ehr/healthie/subscription.js +21 -4
- package/dist/interface/external/ehr/healthie/subscription.js.map +1 -1
- package/dist/interface/external/ehr/patient.d.ts +44 -44
- package/dist/interface/external/ehr/patient.js.map +1 -1
- package/dist/interface/external/ehr/practicefusion/appointment.d.ts +21 -21
- package/dist/interface/external/ehr/practicefusion/appointment.js.map +1 -1
- package/dist/interface/external/ehr/practicefusion/cx-mapping.d.ts +51 -51
- package/dist/interface/external/ehr/practicefusion/jwt-token.d.ts +4 -4
- package/dist/interface/external/ehr/practicefusion/jwt-token.js.map +1 -1
- package/dist/interface/external/ehr/practicefusion/refresh-token.d.ts +2 -2
- package/dist/interface/external/ehr/practitioner.d.ts +6 -6
- package/dist/interface/external/ehr/salesforce/cx-mapping.d.ts +49 -49
- package/dist/interface/external/ehr/salesforce/jwt-token.d.ts +3 -3
- package/dist/interface/external/ehr/salesforce/jwt-token.js.map +1 -1
- package/dist/interface/external/ehr/salesforce/patient.d.ts +4 -4
- package/dist/interface/external/ehr/salesforce/patient.js.map +1 -1
- package/dist/interface/external/ehr/shared.d.ts +1133 -80
- package/dist/interface/external/ehr/shared.d.ts.map +1 -1
- package/dist/interface/external/ehr/shared.js +64 -2
- package/dist/interface/external/ehr/shared.js.map +1 -1
- package/dist/interface/external/ehr/source.d.ts +1 -0
- package/dist/interface/external/ehr/source.d.ts.map +1 -1
- package/dist/interface/external/ehr/source.js +10 -9
- package/dist/interface/external/ehr/source.js.map +1 -1
- package/dist/interface/external/quest/roster.d.ts.map +1 -1
- package/dist/interface/external/quest/roster.js +6 -6
- package/dist/interface/external/quest/roster.js.map +1 -1
- package/dist/interface/external/quest/source.js.map +1 -1
- package/dist/interface/external/surescripts/added-by.d.ts +8 -0
- package/dist/interface/external/surescripts/added-by.d.ts.map +1 -0
- package/dist/interface/external/surescripts/added-by.js +23 -0
- package/dist/interface/external/surescripts/added-by.js.map +1 -0
- package/dist/interface/external/surescripts/code-list-qualifier.d.ts.map +1 -1
- package/dist/interface/external/surescripts/dea-schedule.d.ts.map +1 -1
- package/dist/interface/external/surescripts/dea-schedule.js +2 -2
- package/dist/interface/external/surescripts/dea-schedule.js.map +1 -1
- package/dist/interface/external/surescripts/index.d.ts +2 -0
- package/dist/interface/external/surescripts/index.d.ts.map +1 -1
- package/dist/interface/external/surescripts/index.js +2 -0
- package/dist/interface/external/surescripts/index.js.map +1 -1
- package/dist/interface/external/surescripts/ncpdp.d.ts.map +1 -1
- package/dist/interface/external/surescripts/ncpdp.js +2 -2
- package/dist/interface/external/surescripts/ncpdp.js.map +1 -1
- package/dist/interface/external/surescripts/payment-code.d.ts.map +1 -1
- package/dist/interface/external/surescripts/payment-code.js +11 -11
- package/dist/interface/external/surescripts/payment-code.js.map +1 -1
- package/dist/interface/external/surescripts/plan-code.d.ts.map +1 -1
- package/dist/interface/external/surescripts/plan-code.js +2 -2
- package/dist/interface/external/surescripts/plan-code.js.map +1 -1
- package/dist/interface/external/surescripts/realtime-pulls/file-name.d.ts +15 -0
- package/dist/interface/external/surescripts/realtime-pulls/file-name.d.ts.map +1 -0
- package/dist/interface/external/surescripts/realtime-pulls/file-name.js +19 -0
- package/dist/interface/external/surescripts/realtime-pulls/file-name.js.map +1 -0
- package/dist/interface/external/surescripts/realtime-pulls/index.d.ts +3 -0
- package/dist/interface/external/surescripts/realtime-pulls/index.d.ts.map +1 -0
- package/dist/interface/external/surescripts/realtime-pulls/index.js +19 -0
- package/dist/interface/external/surescripts/realtime-pulls/index.js.map +1 -0
- package/dist/interface/external/surescripts/realtime-pulls/status-codes.d.ts +91 -0
- package/dist/interface/external/surescripts/realtime-pulls/status-codes.d.ts.map +1 -0
- package/dist/interface/external/surescripts/realtime-pulls/status-codes.js +64 -0
- package/dist/interface/external/surescripts/realtime-pulls/status-codes.js.map +1 -0
- package/dist/interface/external/surescripts/roster.d.ts +2 -0
- package/dist/interface/external/surescripts/roster.d.ts.map +1 -1
- package/dist/interface/external/surescripts/roster.js +16 -5
- package/dist/interface/external/surescripts/roster.js.map +1 -1
- package/dist/interface/internal/cohort.d.ts +240 -240
- package/dist/interface/internal/cohort.d.ts.map +1 -1
- package/dist/interface/internal/cohort.js +10 -6
- package/dist/interface/internal/cohort.js.map +1 -1
- package/dist/interface/internal/consolidated.d.ts +359 -10
- package/dist/interface/internal/consolidated.d.ts.map +1 -1
- package/dist/interface/internal/consolidated.js +24 -3
- package/dist/interface/internal/consolidated.js.map +1 -1
- package/dist/interface/internal/customer.d.ts +14 -0
- package/dist/interface/internal/customer.d.ts.map +1 -0
- package/dist/interface/internal/customer.js +28 -0
- package/dist/interface/internal/customer.js.map +1 -0
- package/dist/interface/internal/document-query.d.ts +2 -2
- package/dist/interface/internal/index.d.ts +1 -0
- package/dist/interface/internal/index.d.ts.map +1 -1
- package/dist/interface/internal/index.js +1 -0
- package/dist/interface/internal/index.js.map +1 -1
- package/dist/interface/schema/feedback.d.ts +2 -2
- package/dist/medical/fhir/__tests__/procedure-category-from-cpt.test.d.ts +2 -0
- package/dist/medical/fhir/__tests__/procedure-category-from-cpt.test.d.ts.map +1 -0
- package/dist/medical/fhir/__tests__/procedure-category-from-cpt.test.js +79 -0
- package/dist/medical/fhir/__tests__/procedure-category-from-cpt.test.js.map +1 -0
- package/dist/medical/fhir/bundle.js +3 -4
- package/dist/medical/fhir/bundle.js.map +1 -1
- package/dist/medical/fhir/coding.js +4 -5
- package/dist/medical/fhir/coding.js.map +1 -1
- package/dist/medical/fhir/constants.js.map +1 -1
- package/dist/medical/fhir/conversion.d.ts.map +1 -1
- package/dist/medical/fhir/imaging-detection.d.ts +3 -16
- package/dist/medical/fhir/imaging-detection.d.ts.map +1 -1
- package/dist/medical/fhir/imaging-detection.js +35 -35
- package/dist/medical/fhir/imaging-detection.js.map +1 -1
- package/dist/medical/fhir/observations.js +4 -5
- package/dist/medical/fhir/observations.js.map +1 -1
- package/dist/medical/fhir/procedure-category-from-cpt.d.ts +4 -0
- package/dist/medical/fhir/procedure-category-from-cpt.d.ts.map +1 -0
- package/dist/medical/fhir/procedure-category-from-cpt.js +106 -0
- package/dist/medical/fhir/procedure-category-from-cpt.js.map +1 -0
- package/dist/medical/fhir/procedure-category.d.ts +12 -0
- package/dist/medical/fhir/procedure-category.d.ts.map +1 -0
- package/dist/medical/fhir/procedure-category.js +45 -0
- package/dist/medical/fhir/procedure-category.js.map +1 -0
- package/dist/medical/fhir/procedure-type.d.ts.map +1 -1
- package/dist/medical/fhir/procedure-type.js +3 -3
- package/dist/medical/fhir/procedure-type.js.map +1 -1
- package/dist/medical/fhir/resources.d.ts.map +1 -1
- package/dist/medical/fhir/resources.js.map +1 -1
- package/dist/medical/fhir/specialty-codes.d.ts.map +1 -1
- package/dist/medical/index.d.ts +2 -0
- package/dist/medical/index.d.ts.map +1 -1
- package/dist/medical/index.js +2 -0
- package/dist/medical/index.js.map +1 -1
- package/dist/medical/webhook/webhook-request.d.ts +1899 -833
- package/dist/medical/webhook/webhook-request.d.ts.map +1 -1
- package/dist/medical/webhook/webhook-request.js +95 -19
- package/dist/medical/webhook/webhook-request.js.map +1 -1
- package/dist/net/__tests__/axios.d.ts +6 -7
- package/dist/net/__tests__/axios.d.ts.map +1 -1
- package/dist/net/__tests__/axios.js +22 -12
- package/dist/net/__tests__/axios.js.map +1 -1
- package/dist/net/__tests__/retry.test.js +17 -7
- package/dist/net/__tests__/retry.test.js.map +1 -1
- package/dist/net/error.d.ts +1 -1
- package/dist/net/error.d.ts.map +1 -1
- package/dist/net/error.js +22 -12
- package/dist/net/error.js.map +1 -1
- package/dist/net/http.js +6 -7
- package/dist/net/http.js.map +1 -1
- package/dist/net/retry.d.ts +1 -0
- package/dist/net/retry.d.ts.map +1 -1
- package/dist/net/retry.js +10 -9
- package/dist/net/retry.js.map +1 -1
- package/dist/net/url.js +1 -2
- package/dist/net/url.js.map +1 -1
- package/dist/util/base64.d.ts +14 -2
- package/dist/util/base64.d.ts.map +1 -1
- package/dist/util/base64.js +30 -5
- package/dist/util/base64.js.map +1 -1
- package/dist/util/duration.js +2 -3
- package/dist/util/duration.js.map +1 -1
- package/dist/util/sqs-delay-from-uuid.js +2 -2
- package/dist/util/sqs-delay-from-uuid.js.map +1 -1
- package/dist/util/stack-trace.d.ts +17 -0
- package/dist/util/stack-trace.d.ts.map +1 -0
- package/dist/util/stack-trace.js +32 -0
- package/dist/util/stack-trace.js.map +1 -0
- package/dist/util/uuid-v7.d.ts +1 -1
- package/dist/util/uuid-v7.d.ts.map +1 -1
- package/dist/util/uuid-v7.js +23 -13
- package/dist/util/uuid-v7.js.map +1 -1
- package/dist/util/zod.js +2 -2
- package/dist/util/zod.js.map +1 -1
- package/package.json +41 -11
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PlanCodeName = exports.PlanCodeNames = exports.PlanCodes =
|
|
3
|
+
exports.PlanCodeName = exports.PlanCodeNames = exports.PlanCodes = void 0;
|
|
4
|
+
exports.getPlanCodeName = getPlanCodeName;
|
|
4
5
|
function getPlanCodeName(planCode) {
|
|
5
6
|
return exports.PlanCodeName[planCode];
|
|
6
7
|
}
|
|
7
|
-
exports.getPlanCodeName = getPlanCodeName;
|
|
8
8
|
exports.PlanCodes = ["01", "02", "03", "04", "05", "06"];
|
|
9
9
|
exports.PlanCodeNames = [
|
|
10
10
|
"PrivatePay",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plan-code.js","sourceRoot":"","sources":["../../../../src/interface/external/surescripts/plan-code.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"plan-code.js","sourceRoot":"","sources":["../../../../src/interface/external/surescripts/plan-code.ts"],"names":[],"mappings":";;;;AAAA,yBAAgC,QAAgB;IAC9C,OAAO,QAAA,YAAY,CAAC,QAAoB,CAAC,CAAC;AAC5C,CAAC;AAEY,QAAA,SAAS,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAU,CAAC;AAC1D,QAAA,aAAa,GAAG;IAC3B,YAAY;IACZ,UAAU;IACV,UAAU;IACV,0BAA0B;IAC1B,eAAe;IACf,uBAAuB;CACf,CAAC;AAKE,QAAA,YAAY,GAAmC;IAC1D,IAAI,EAAE,YAAY;IAClB,IAAI,EAAE,UAAU;IAChB,IAAI,EAAE,UAAU;IAChB,IAAI,EAAE,0BAA0B;IAChC,IAAI,EAAE,eAAe;IACrB,IAAI,EAAE,uBAAuB;CAC9B,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare enum FileType {
|
|
2
|
+
raw = "raw",
|
|
3
|
+
parsed = "parsed",
|
|
4
|
+
converted = "converted",
|
|
5
|
+
responseDetails = "responseDetails",
|
|
6
|
+
latest = "latest"
|
|
7
|
+
}
|
|
8
|
+
export declare const surescriptsRealtimePullsConversionsKeyPrefix = "conversions/surescripts-realtime-pulls";
|
|
9
|
+
export declare const surescriptsRealtimePullsResponseFolder = "response";
|
|
10
|
+
export declare const surescriptsRealtimePullsRequestFolder = "request";
|
|
11
|
+
export declare const surescriptsRealtimePullsResponseParsedSuffix: string;
|
|
12
|
+
export declare const surescriptsRealtimePullsResponseConvertedSuffix: string;
|
|
13
|
+
export declare const surescriptsRealtimePullsResponseDetailsSuffix: string;
|
|
14
|
+
export declare const surescriptsRealtimePullsResponseLatestSuffix: string;
|
|
15
|
+
//# sourceMappingURL=file-name.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file-name.d.ts","sourceRoot":"","sources":["../../../../../src/interface/external/surescripts/realtime-pulls/file-name.ts"],"names":[],"mappings":"AAAA,oBAAY,QAAQ;IAClB,GAAG,QAAQ;IACX,MAAM,WAAW;IACjB,SAAS,cAAc;IACvB,eAAe,oBAAoB;IACnC,MAAM,WAAW;CAClB;AAED,eAAO,MAAM,4CAA4C,2CACf,CAAC;AAE3C,eAAO,MAAM,sCAAsC,aAAa,CAAC;AACjE,eAAO,MAAM,qCAAqC,YAAY,CAAC;AAE/D,eAAO,MAAM,4CAA4C,QAA0C,CAAC;AAEpG,eAAO,MAAM,+CAA+C,QAA6C,CAAC;AAE1G,eAAO,MAAM,6CAA6C,QAAmD,CAAC;AAE9G,eAAO,MAAM,4CAA4C,QAA0C,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.surescriptsRealtimePullsResponseLatestSuffix = exports.surescriptsRealtimePullsResponseDetailsSuffix = exports.surescriptsRealtimePullsResponseConvertedSuffix = exports.surescriptsRealtimePullsResponseParsedSuffix = exports.surescriptsRealtimePullsRequestFolder = exports.surescriptsRealtimePullsResponseFolder = exports.surescriptsRealtimePullsConversionsKeyPrefix = exports.FileType = void 0;
|
|
4
|
+
var FileType;
|
|
5
|
+
(function (FileType) {
|
|
6
|
+
FileType["raw"] = "raw";
|
|
7
|
+
FileType["parsed"] = "parsed";
|
|
8
|
+
FileType["converted"] = "converted";
|
|
9
|
+
FileType["responseDetails"] = "responseDetails";
|
|
10
|
+
FileType["latest"] = "latest";
|
|
11
|
+
})(FileType || (exports.FileType = FileType = {}));
|
|
12
|
+
exports.surescriptsRealtimePullsConversionsKeyPrefix = "conversions/surescripts-realtime-pulls";
|
|
13
|
+
exports.surescriptsRealtimePullsResponseFolder = "response";
|
|
14
|
+
exports.surescriptsRealtimePullsRequestFolder = "request";
|
|
15
|
+
exports.surescriptsRealtimePullsResponseParsedSuffix = `${FileType.parsed.toUpperCase()}.json`;
|
|
16
|
+
exports.surescriptsRealtimePullsResponseConvertedSuffix = `${FileType.converted.toUpperCase()}.json`;
|
|
17
|
+
exports.surescriptsRealtimePullsResponseDetailsSuffix = `${FileType.responseDetails.toUpperCase()}.json`;
|
|
18
|
+
exports.surescriptsRealtimePullsResponseLatestSuffix = `${FileType.latest.toUpperCase()}.json`;
|
|
19
|
+
//# sourceMappingURL=file-name.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file-name.js","sourceRoot":"","sources":["../../../../../src/interface/external/surescripts/realtime-pulls/file-name.ts"],"names":[],"mappings":";;;AAAA,IAAY,QAMX;AAND,WAAY,QAAQ;IAClB,uBAAW,CAAA;IACX,6BAAiB,CAAA;IACjB,mCAAuB,CAAA;IACvB,+CAAmC,CAAA;IACnC,6BAAiB,CAAA;AACnB,CAAC,EANW,QAAQ,aAAR,QAAQ,GAAR,QAAQ,QAMnB;AAEY,QAAA,4CAA4C,GACvD,wCAAwC,CAAC;AAE9B,QAAA,sCAAsC,GAAG,UAAU,CAAC;AACpD,QAAA,qCAAqC,GAAG,SAAS,CAAC;AAElD,QAAA,4CAA4C,GAAG,GAAG,QAAQ,CAAC,MAAM,CAAC,WAAW,EAAE,OAAO,CAAC;AAEvF,QAAA,+CAA+C,GAAG,GAAG,QAAQ,CAAC,SAAS,CAAC,WAAW,EAAE,OAAO,CAAC;AAE7F,QAAA,6CAA6C,GAAG,GAAG,QAAQ,CAAC,eAAe,CAAC,WAAW,EAAE,OAAO,CAAC;AAEjG,QAAA,4CAA4C,GAAG,GAAG,QAAQ,CAAC,MAAM,CAAC,WAAW,EAAE,OAAO,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/interface/external/surescripts/realtime-pulls/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
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("./status-codes"), exports);
|
|
18
|
+
__exportStar(require("./file-name"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/interface/external/surescripts/realtime-pulls/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,8CAA4B"}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare enum SurescriptsRealtimePullsConversionStatusCode {
|
|
3
|
+
converted = "surescripts-converted",
|
|
4
|
+
moreDataAvailable = "surescripts-moreDataAvailable",
|
|
5
|
+
internalSurescriptsError = "surescripts-internalSurescriptsError",
|
|
6
|
+
internalError = "surescripts-internalError"
|
|
7
|
+
}
|
|
8
|
+
export declare function isSurescriptsInternalErrorStatusCode(status: SurescriptsRealtimePullsConversionStatusCode): boolean;
|
|
9
|
+
export declare function isMoreDataAvailableStatusCode(status: SurescriptsRealtimePullsConversionStatusCode): boolean;
|
|
10
|
+
export declare function isConvertedStatusCode(status: SurescriptsRealtimePullsConversionStatusCode): boolean;
|
|
11
|
+
export declare function isInternalErrorStatusCode(status: SurescriptsRealtimePullsConversionStatusCode): boolean;
|
|
12
|
+
export declare const surescriptsRealtimePullsSnsSchemaVersion: 1;
|
|
13
|
+
export type SurescriptsRealtimePullsResponseProcessedSnsBaseEvent = {
|
|
14
|
+
schemaVersion: typeof surescriptsRealtimePullsSnsSchemaVersion;
|
|
15
|
+
cxId: string;
|
|
16
|
+
patientId: string;
|
|
17
|
+
requestId: string;
|
|
18
|
+
facilityId: string;
|
|
19
|
+
numberOfTries: number;
|
|
20
|
+
};
|
|
21
|
+
export type SurescriptsRealtimePullsResponseProcessedSnsNoDataEvent = SurescriptsRealtimePullsResponseProcessedSnsBaseEvent & {
|
|
22
|
+
eventType: SurescriptsRealtimePullsConversionStatusCode.internalError;
|
|
23
|
+
convertedBundleS3Key?: never;
|
|
24
|
+
error?: string | undefined;
|
|
25
|
+
};
|
|
26
|
+
export type SurescriptsRealtimePullsResponseProcessedSnsHasDataEvent = SurescriptsRealtimePullsResponseProcessedSnsBaseEvent & {
|
|
27
|
+
eventType: SurescriptsRealtimePullsConversionStatusCode;
|
|
28
|
+
convertedBundleS3Key?: string | undefined;
|
|
29
|
+
error?: never;
|
|
30
|
+
};
|
|
31
|
+
export type SurescriptsRealtimePullsResponseProcessedSnsEvent = SurescriptsRealtimePullsResponseProcessedSnsHasDataEvent | SurescriptsRealtimePullsResponseProcessedSnsNoDataEvent;
|
|
32
|
+
export declare const surescriptsRealtimePullsResponseProcessedSnsEventSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
|
|
33
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
34
|
+
cxId: z.ZodString;
|
|
35
|
+
patientId: z.ZodString;
|
|
36
|
+
requestId: z.ZodString;
|
|
37
|
+
facilityId: z.ZodString;
|
|
38
|
+
numberOfTries: z.ZodNumber;
|
|
39
|
+
}, {
|
|
40
|
+
eventType: z.ZodLiteral<SurescriptsRealtimePullsConversionStatusCode.internalError>;
|
|
41
|
+
error: z.ZodOptional<z.ZodString>;
|
|
42
|
+
}>, "strict", z.ZodTypeAny, {
|
|
43
|
+
schemaVersion: 1;
|
|
44
|
+
cxId: string;
|
|
45
|
+
patientId: string;
|
|
46
|
+
requestId: string;
|
|
47
|
+
facilityId: string;
|
|
48
|
+
numberOfTries: number;
|
|
49
|
+
eventType: SurescriptsRealtimePullsConversionStatusCode.internalError;
|
|
50
|
+
error?: string | undefined;
|
|
51
|
+
}, {
|
|
52
|
+
schemaVersion: 1;
|
|
53
|
+
cxId: string;
|
|
54
|
+
patientId: string;
|
|
55
|
+
requestId: string;
|
|
56
|
+
facilityId: string;
|
|
57
|
+
numberOfTries: number;
|
|
58
|
+
eventType: SurescriptsRealtimePullsConversionStatusCode.internalError;
|
|
59
|
+
error?: string | undefined;
|
|
60
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
61
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
62
|
+
cxId: z.ZodString;
|
|
63
|
+
patientId: z.ZodString;
|
|
64
|
+
requestId: z.ZodString;
|
|
65
|
+
facilityId: z.ZodString;
|
|
66
|
+
numberOfTries: z.ZodNumber;
|
|
67
|
+
}, {
|
|
68
|
+
eventType: z.ZodNativeEnum<typeof SurescriptsRealtimePullsConversionStatusCode>;
|
|
69
|
+
convertedBundleS3Key: z.ZodOptional<z.ZodString>;
|
|
70
|
+
}>, "strict", z.ZodTypeAny, {
|
|
71
|
+
schemaVersion: 1;
|
|
72
|
+
cxId: string;
|
|
73
|
+
patientId: string;
|
|
74
|
+
requestId: string;
|
|
75
|
+
facilityId: string;
|
|
76
|
+
numberOfTries: number;
|
|
77
|
+
eventType: SurescriptsRealtimePullsConversionStatusCode;
|
|
78
|
+
convertedBundleS3Key?: string | undefined;
|
|
79
|
+
}, {
|
|
80
|
+
schemaVersion: 1;
|
|
81
|
+
cxId: string;
|
|
82
|
+
patientId: string;
|
|
83
|
+
requestId: string;
|
|
84
|
+
facilityId: string;
|
|
85
|
+
numberOfTries: number;
|
|
86
|
+
eventType: SurescriptsRealtimePullsConversionStatusCode;
|
|
87
|
+
convertedBundleS3Key?: string | undefined;
|
|
88
|
+
}>]>;
|
|
89
|
+
export declare function surescriptsRealtimePullsResponseProcessedEventHasData(event: SurescriptsRealtimePullsResponseProcessedSnsEvent): event is SurescriptsRealtimePullsResponseProcessedSnsHasDataEvent;
|
|
90
|
+
export declare function surescriptsRealtimePullsResponseProcessedEventHasNoData(event: SurescriptsRealtimePullsResponseProcessedSnsEvent): event is SurescriptsRealtimePullsResponseProcessedSnsNoDataEvent;
|
|
91
|
+
//# sourceMappingURL=status-codes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"status-codes.d.ts","sourceRoot":"","sources":["../../../../../src/interface/external/surescripts/realtime-pulls/status-codes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,oBAAY,4CAA4C;IACtD,SAAS,0BAA0B;IACnC,iBAAiB,kCAAkC;IACnD,wBAAwB,yCAAyC;IACjE,aAAa,8BAA8B;CAC5C;AAED,wBAAgB,oCAAoC,CAClD,MAAM,EAAE,4CAA4C,GACnD,OAAO,CAET;AAED,wBAAgB,6BAA6B,CAC3C,MAAM,EAAE,4CAA4C,GACnD,OAAO,CAET;AAED,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,4CAA4C,GACnD,OAAO,CAET;AAED,wBAAgB,yBAAyB,CACvC,MAAM,EAAE,4CAA4C,GACnD,OAAO,CAET;AAED,eAAO,MAAM,wCAAwC,EAAG,CAAU,CAAC;AAEnE,MAAM,MAAM,qDAAqD,GAAG;IAClE,aAAa,EAAE,OAAO,wCAAwC,CAAC;IAC/D,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,uDAAuD,GACjE,qDAAqD,GAAG;IACtD,SAAS,EAAE,4CAA4C,CAAC,aAAa,CAAC;IACtE,oBAAoB,CAAC,EAAE,KAAK,CAAC;IAC7B,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC5B,CAAC;AAEJ,MAAM,MAAM,wDAAwD,GAClE,qDAAqD,GAAG;IACtD,SAAS,EAAE,4CAA4C,CAAC;IACxD,oBAAoB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1C,KAAK,CAAC,EAAE,KAAK,CAAC;CACf,CAAC;AAEJ,MAAM,MAAM,iDAAiD,GACzD,wDAAwD,GACxD,uDAAuD,CAAC;AA2B5D,eAAO,MAAM,uDAAuD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAGK,CAAC;AAE1E,wBAAgB,qDAAqD,CACnE,KAAK,EAAE,iDAAiD,GACvD,KAAK,IAAI,wDAAwD,CAKnE;AAED,wBAAgB,uDAAuD,CACrE,KAAK,EAAE,iDAAiD,GACvD,KAAK,IAAI,uDAAuD,CAElE"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.surescriptsRealtimePullsResponseProcessedSnsEventSchema = exports.surescriptsRealtimePullsSnsSchemaVersion = exports.SurescriptsRealtimePullsConversionStatusCode = void 0;
|
|
4
|
+
exports.isSurescriptsInternalErrorStatusCode = isSurescriptsInternalErrorStatusCode;
|
|
5
|
+
exports.isMoreDataAvailableStatusCode = isMoreDataAvailableStatusCode;
|
|
6
|
+
exports.isConvertedStatusCode = isConvertedStatusCode;
|
|
7
|
+
exports.isInternalErrorStatusCode = isInternalErrorStatusCode;
|
|
8
|
+
exports.surescriptsRealtimePullsResponseProcessedEventHasData = surescriptsRealtimePullsResponseProcessedEventHasData;
|
|
9
|
+
exports.surescriptsRealtimePullsResponseProcessedEventHasNoData = surescriptsRealtimePullsResponseProcessedEventHasNoData;
|
|
10
|
+
const zod_1 = require("zod");
|
|
11
|
+
var SurescriptsRealtimePullsConversionStatusCode;
|
|
12
|
+
(function (SurescriptsRealtimePullsConversionStatusCode) {
|
|
13
|
+
SurescriptsRealtimePullsConversionStatusCode["converted"] = "surescripts-converted";
|
|
14
|
+
SurescriptsRealtimePullsConversionStatusCode["moreDataAvailable"] = "surescripts-moreDataAvailable";
|
|
15
|
+
SurescriptsRealtimePullsConversionStatusCode["internalSurescriptsError"] = "surescripts-internalSurescriptsError";
|
|
16
|
+
SurescriptsRealtimePullsConversionStatusCode["internalError"] = "surescripts-internalError";
|
|
17
|
+
})(SurescriptsRealtimePullsConversionStatusCode || (exports.SurescriptsRealtimePullsConversionStatusCode = SurescriptsRealtimePullsConversionStatusCode = {}));
|
|
18
|
+
function isSurescriptsInternalErrorStatusCode(status) {
|
|
19
|
+
return status === SurescriptsRealtimePullsConversionStatusCode.internalSurescriptsError;
|
|
20
|
+
}
|
|
21
|
+
function isMoreDataAvailableStatusCode(status) {
|
|
22
|
+
return status === SurescriptsRealtimePullsConversionStatusCode.moreDataAvailable;
|
|
23
|
+
}
|
|
24
|
+
function isConvertedStatusCode(status) {
|
|
25
|
+
return status === SurescriptsRealtimePullsConversionStatusCode.converted;
|
|
26
|
+
}
|
|
27
|
+
function isInternalErrorStatusCode(status) {
|
|
28
|
+
return status === SurescriptsRealtimePullsConversionStatusCode.internalError;
|
|
29
|
+
}
|
|
30
|
+
exports.surescriptsRealtimePullsSnsSchemaVersion = 1;
|
|
31
|
+
const surescriptsRealtimePullsResponseProcessedSnsBaseEventSchema = zod_1.z.object({
|
|
32
|
+
schemaVersion: zod_1.z.literal(exports.surescriptsRealtimePullsSnsSchemaVersion),
|
|
33
|
+
cxId: zod_1.z.string().uuid(),
|
|
34
|
+
patientId: zod_1.z.string().uuid(),
|
|
35
|
+
requestId: zod_1.z.string().min(1),
|
|
36
|
+
facilityId: zod_1.z.string().uuid(),
|
|
37
|
+
numberOfTries: zod_1.z.number(),
|
|
38
|
+
});
|
|
39
|
+
const surescriptsRealtimePullsResponseProcessedSnsNoDataEventSchema = surescriptsRealtimePullsResponseProcessedSnsBaseEventSchema
|
|
40
|
+
.extend({
|
|
41
|
+
eventType: zod_1.z.literal(SurescriptsRealtimePullsConversionStatusCode.internalError),
|
|
42
|
+
error: zod_1.z.string().optional(),
|
|
43
|
+
})
|
|
44
|
+
.strict();
|
|
45
|
+
const surescriptsRealtimePullsResponseProcessedSnsHasDataEventSchema = surescriptsRealtimePullsResponseProcessedSnsBaseEventSchema
|
|
46
|
+
.extend({
|
|
47
|
+
eventType: zod_1.z.nativeEnum(SurescriptsRealtimePullsConversionStatusCode),
|
|
48
|
+
convertedBundleS3Key: zod_1.z.string().optional(),
|
|
49
|
+
})
|
|
50
|
+
.strict();
|
|
51
|
+
exports.surescriptsRealtimePullsResponseProcessedSnsEventSchema = zod_1.z.union([
|
|
52
|
+
surescriptsRealtimePullsResponseProcessedSnsNoDataEventSchema,
|
|
53
|
+
surescriptsRealtimePullsResponseProcessedSnsHasDataEventSchema,
|
|
54
|
+
]);
|
|
55
|
+
function surescriptsRealtimePullsResponseProcessedEventHasData(event) {
|
|
56
|
+
if (isInternalErrorStatusCode(event.eventType)) {
|
|
57
|
+
return false;
|
|
58
|
+
}
|
|
59
|
+
return true;
|
|
60
|
+
}
|
|
61
|
+
function surescriptsRealtimePullsResponseProcessedEventHasNoData(event) {
|
|
62
|
+
return !surescriptsRealtimePullsResponseProcessedEventHasData(event);
|
|
63
|
+
}
|
|
64
|
+
//# sourceMappingURL=status-codes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"status-codes.js","sourceRoot":"","sources":["../../../../../src/interface/external/surescripts/realtime-pulls/status-codes.ts"],"names":[],"mappings":";;;;;;;;;AAAA,6BAAwB;AAExB,IAAY,4CAKX;AALD,WAAY,4CAA4C;IACtD,mFAAmC,CAAA;IACnC,mGAAmD,CAAA;IACnD,iHAAiE,CAAA;IACjE,2FAA2C,CAAA;AAC7C,CAAC,EALW,4CAA4C,aAA5C,4CAA4C,GAA5C,4CAA4C,QAKvD;AAED,8CACE,MAAoD;IAEpD,OAAO,MAAM,KAAK,4CAA4C,CAAC,wBAAwB,CAAC;AAC1F,CAAC;AAED,uCACE,MAAoD;IAEpD,OAAO,MAAM,KAAK,4CAA4C,CAAC,iBAAiB,CAAC;AACnF,CAAC;AAED,+BACE,MAAoD;IAEpD,OAAO,MAAM,KAAK,4CAA4C,CAAC,SAAS,CAAC;AAC3E,CAAC;AAED,mCACE,MAAoD;IAEpD,OAAO,MAAM,KAAK,4CAA4C,CAAC,aAAa,CAAC;AAC/E,CAAC;AAEY,QAAA,wCAAwC,GAAG,CAAU,CAAC;AA6BnE,MAAM,2DAA2D,GAAG,OAAC,CAAC,MAAM,CAAC;IAC3E,aAAa,EAAE,OAAC,CAAC,OAAO,CAAC,QAAA,wCAAwC,CAAC;IAClE,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IACvB,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAC5B,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC5B,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAC7B,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE;CAC1B,CAAC,CAAC;AAEH,MAAM,6DAA6D,GACjE,2DAA2D;KACxD,MAAM,CAAC;IACN,SAAS,EAAE,OAAC,CAAC,OAAO,CAAC,4CAA4C,CAAC,aAAa,CAAC;IAChF,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC7B,CAAC;KACD,MAAM,EAAE,CAAC;AAEd,MAAM,8DAA8D,GAClE,2DAA2D;KACxD,MAAM,CAAC;IACN,SAAS,EAAE,OAAC,CAAC,UAAU,CAAC,4CAA4C,CAAC;IACrE,oBAAoB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC5C,CAAC;KACD,MAAM,EAAE,CAAC;AAED,QAAA,uDAAuD,GAAG,OAAC,CAAC,KAAK,CAAC;IAC7E,6DAA6D;IAC7D,8DAA8D;CAC/D,CAAwE,CAAC;AAE1E,+DACE,KAAwD;IAExD,IAAI,yBAAyB,CAAC,KAAK,CAAC,SAAS,CAAC,EAAE,CAAC;QAC/C,OAAO,KAAK,CAAC;IACf,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAED,iEACE,KAAwD;IAExD,OAAO,CAAC,qDAAqD,CAAC,KAAK,CAAC,CAAC;AACvE,CAAC"}
|
|
@@ -9,4 +9,6 @@ export declare function isValidSurescriptsRosterType(value: string): value is Su
|
|
|
9
9
|
export declare function validateSurescriptsRosterType(value: string): SurescriptsRosterType;
|
|
10
10
|
export declare function isNotificationRosterType(rosterType: SurescriptsRosterType): boolean;
|
|
11
11
|
export declare function isBackfillRosterType(rosterType: SurescriptsRosterType): boolean;
|
|
12
|
+
export declare function hasSurescriptsNetworkQuery(addedBy: string[]): boolean;
|
|
13
|
+
export declare function hasSurescriptsNotification(addedBy: string[]): boolean;
|
|
12
14
|
//# sourceMappingURL=roster.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"roster.d.ts","sourceRoot":"","sources":["../../../../src/interface/external/surescripts/roster.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"roster.d.ts","sourceRoot":"","sources":["../../../../src/interface/external/surescripts/roster.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,qBAAqB;aAChC,aAAa,EAAE,eAAe;aAC9B,QAAQ,EAAE,UAAU;CACZ,CAAC;AAEX,MAAM,MAAM,qBAAqB,GAC/B,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,OAAO,qBAAqB,CAAC,CAAC;AAErE,eAAO,MAAM,2BAA2B,0CAGtC,CAAC;AAEH,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,qBAAqB,CAE1F;AAED,wBAAgB,6BAA6B,CAAC,KAAK,EAAE,MAAM,GAAG,qBAAqB,CAElF;AAED,wBAAgB,wBAAwB,CAAC,UAAU,EAAE,qBAAqB,GAAG,OAAO,CAEnF;AAED,wBAAgB,oBAAoB,CAAC,UAAU,EAAE,qBAAqB,GAAG,OAAO,CAE/E;AAED,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,OAAO,CAGrE;AAED,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,OAAO,CAGrE"}
|
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.surescriptsRosterTypeSchema = exports.SurescriptsRosterType = void 0;
|
|
4
|
+
exports.isValidSurescriptsRosterType = isValidSurescriptsRosterType;
|
|
5
|
+
exports.validateSurescriptsRosterType = validateSurescriptsRosterType;
|
|
6
|
+
exports.isNotificationRosterType = isNotificationRosterType;
|
|
7
|
+
exports.isBackfillRosterType = isBackfillRosterType;
|
|
8
|
+
exports.hasSurescriptsNetworkQuery = hasSurescriptsNetworkQuery;
|
|
9
|
+
exports.hasSurescriptsNotification = hasSurescriptsNotification;
|
|
4
10
|
const zod_1 = require("zod");
|
|
11
|
+
const added_by_1 = require("./added-by");
|
|
5
12
|
exports.SurescriptsRosterType = {
|
|
6
13
|
NOTIFICATIONS: "notifications",
|
|
7
14
|
BACKFILL: "backfill",
|
|
@@ -13,17 +20,21 @@ exports.surescriptsRosterTypeSchema = zod_1.z.enum([
|
|
|
13
20
|
function isValidSurescriptsRosterType(value) {
|
|
14
21
|
return exports.surescriptsRosterTypeSchema.safeParse(value).success;
|
|
15
22
|
}
|
|
16
|
-
exports.isValidSurescriptsRosterType = isValidSurescriptsRosterType;
|
|
17
23
|
function validateSurescriptsRosterType(value) {
|
|
18
24
|
return exports.surescriptsRosterTypeSchema.parse(value);
|
|
19
25
|
}
|
|
20
|
-
exports.validateSurescriptsRosterType = validateSurescriptsRosterType;
|
|
21
26
|
function isNotificationRosterType(rosterType) {
|
|
22
27
|
return rosterType === exports.SurescriptsRosterType.NOTIFICATIONS;
|
|
23
28
|
}
|
|
24
|
-
exports.isNotificationRosterType = isNotificationRosterType;
|
|
25
29
|
function isBackfillRosterType(rosterType) {
|
|
26
30
|
return rosterType === exports.SurescriptsRosterType.BACKFILL;
|
|
27
31
|
}
|
|
28
|
-
|
|
32
|
+
function hasSurescriptsNetworkQuery(addedBy) {
|
|
33
|
+
const surescriptsAddedBy = (0, added_by_1.getSurescriptsAddedBy)(addedBy);
|
|
34
|
+
return surescriptsAddedBy.includes(added_by_1.SurescriptsPatientRosterAddedByType.SurescriptsNetworkQuery);
|
|
35
|
+
}
|
|
36
|
+
function hasSurescriptsNotification(addedBy) {
|
|
37
|
+
const surescriptsAddedBy = (0, added_by_1.getSurescriptsAddedBy)(addedBy);
|
|
38
|
+
return surescriptsAddedBy.includes(added_by_1.SurescriptsPatientRosterAddedByType.SurescriptsNotifications);
|
|
39
|
+
}
|
|
29
40
|
//# sourceMappingURL=roster.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"roster.js","sourceRoot":"","sources":["../../../../src/interface/external/surescripts/roster.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"roster.js","sourceRoot":"","sources":["../../../../src/interface/external/surescripts/roster.ts"],"names":[],"mappings":";;;;;;;;;AAAA,6BAAwB;AACxB,yCAAwF;AAE3E,QAAA,qBAAqB,GAAG;IACnC,aAAa,EAAE,eAAe;IAC9B,QAAQ,EAAE,UAAU;CACZ,CAAC;AAKE,QAAA,2BAA2B,GAAG,OAAC,CAAC,IAAI,CAAC;IAChD,QAAA,qBAAqB,CAAC,aAAa;IACnC,QAAA,qBAAqB,CAAC,QAAQ;CAC/B,CAAC,CAAC;AAEH,sCAA6C,KAAa;IACxD,OAAO,QAAA,2BAA2B,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC;AAC9D,CAAC;AAED,uCAA8C,KAAa;IACzD,OAAO,QAAA,2BAA2B,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;AAClD,CAAC;AAED,kCAAyC,UAAiC;IACxE,OAAO,UAAU,KAAK,QAAA,qBAAqB,CAAC,aAAa,CAAC;AAC5D,CAAC;AAED,8BAAqC,UAAiC;IACpE,OAAO,UAAU,KAAK,QAAA,qBAAqB,CAAC,QAAQ,CAAC;AACvD,CAAC;AAED,oCAA2C,OAAiB;IAC1D,MAAM,kBAAkB,GAAG,IAAA,gCAAqB,EAAC,OAAO,CAAC,CAAC;IAC1D,OAAO,kBAAkB,CAAC,QAAQ,CAAC,8CAAmC,CAAC,uBAAuB,CAAC,CAAC;AAClG,CAAC;AAED,oCAA2C,OAAiB;IAC1D,MAAM,kBAAkB,GAAG,IAAA,gCAAqB,EAAC,OAAO,CAAC,CAAC;IAC1D,OAAO,kBAAkB,CAAC,QAAQ,CAAC,8CAAmC,CAAC,wBAAwB,CAAC,CAAC;AACnG,CAAC"}
|