@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
|
@@ -18,49 +18,49 @@ export declare const elationAppointmentEventSchema: z.ZodObject<{
|
|
|
18
18
|
}>;
|
|
19
19
|
}, "strip", z.ZodTypeAny, {
|
|
20
20
|
id: string;
|
|
21
|
-
status: {
|
|
22
|
-
status: string;
|
|
23
|
-
};
|
|
24
21
|
patient: string;
|
|
25
22
|
created_date: string;
|
|
26
23
|
last_modified_date: string;
|
|
27
|
-
}, {
|
|
28
|
-
id: string;
|
|
29
24
|
status: {
|
|
30
25
|
status: string;
|
|
31
26
|
};
|
|
27
|
+
}, {
|
|
28
|
+
id: string;
|
|
32
29
|
patient: string;
|
|
33
30
|
created_date: string;
|
|
34
31
|
last_modified_date: string;
|
|
32
|
+
status: {
|
|
33
|
+
status: string;
|
|
34
|
+
};
|
|
35
35
|
}>;
|
|
36
36
|
}, "strip", z.ZodTypeAny, {
|
|
37
|
+
event_id: string;
|
|
38
|
+
application_id: string;
|
|
39
|
+
resource: "appointments";
|
|
40
|
+
action: "deleted" | "saved";
|
|
37
41
|
data: {
|
|
38
42
|
id: string;
|
|
39
|
-
status: {
|
|
40
|
-
status: string;
|
|
41
|
-
};
|
|
42
43
|
patient: string;
|
|
43
44
|
created_date: string;
|
|
44
45
|
last_modified_date: string;
|
|
46
|
+
status: {
|
|
47
|
+
status: string;
|
|
48
|
+
};
|
|
45
49
|
};
|
|
46
|
-
|
|
50
|
+
}, {
|
|
47
51
|
event_id: string;
|
|
48
52
|
application_id: string;
|
|
49
|
-
|
|
50
|
-
|
|
53
|
+
resource: "appointments";
|
|
54
|
+
action: "deleted" | "saved";
|
|
51
55
|
data: {
|
|
52
56
|
id: string;
|
|
53
|
-
status: {
|
|
54
|
-
status: string;
|
|
55
|
-
};
|
|
56
57
|
patient: string;
|
|
57
58
|
created_date: string;
|
|
58
59
|
last_modified_date: string;
|
|
60
|
+
status: {
|
|
61
|
+
status: string;
|
|
62
|
+
};
|
|
59
63
|
};
|
|
60
|
-
resource: "appointments";
|
|
61
|
-
event_id: string;
|
|
62
|
-
application_id: string;
|
|
63
|
-
action: "saved" | "deleted";
|
|
64
64
|
}>;
|
|
65
65
|
export type ElationAppointmentEvent = z.infer<typeof elationAppointmentEventSchema>;
|
|
66
66
|
export declare const elationPatientEventSchema: z.ZodObject<{
|
|
@@ -82,25 +82,25 @@ export declare const elationPatientEventSchema: z.ZodObject<{
|
|
|
82
82
|
last_modified: string;
|
|
83
83
|
}>;
|
|
84
84
|
}, "strip", z.ZodTypeAny, {
|
|
85
|
+
event_id: string;
|
|
86
|
+
application_id: string;
|
|
87
|
+
resource: "patients";
|
|
88
|
+
action: "deleted" | "saved";
|
|
85
89
|
data: {
|
|
86
90
|
id: string;
|
|
87
91
|
created_date: string;
|
|
88
92
|
last_modified: string;
|
|
89
93
|
};
|
|
90
|
-
|
|
94
|
+
}, {
|
|
91
95
|
event_id: string;
|
|
92
96
|
application_id: string;
|
|
93
|
-
|
|
94
|
-
|
|
97
|
+
resource: "patients";
|
|
98
|
+
action: "deleted" | "saved";
|
|
95
99
|
data: {
|
|
96
100
|
id: string;
|
|
97
101
|
created_date: string;
|
|
98
102
|
last_modified: string;
|
|
99
103
|
};
|
|
100
|
-
resource: "patients";
|
|
101
|
-
event_id: string;
|
|
102
|
-
application_id: string;
|
|
103
|
-
action: "saved" | "deleted";
|
|
104
104
|
}>;
|
|
105
105
|
export type ElationPatientEvent = z.infer<typeof elationPatientEventSchema>;
|
|
106
106
|
//# sourceMappingURL=event.d.ts.map
|
|
@@ -6,13 +6,13 @@ export declare const elationDashJwtTokenDataSchema: z.ZodObject<{
|
|
|
6
6
|
patientId: z.ZodString;
|
|
7
7
|
source: z.ZodLiteral<"elation">;
|
|
8
8
|
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
practiceId: string;
|
|
9
10
|
patientId: string;
|
|
10
11
|
source: "elation";
|
|
11
|
-
practiceId: string;
|
|
12
12
|
}, {
|
|
13
|
+
practiceId: string;
|
|
13
14
|
patientId: string;
|
|
14
15
|
source: "elation";
|
|
15
|
-
practiceId: string;
|
|
16
16
|
}>;
|
|
17
17
|
export type ElationDashJwtTokenData = z.infer<typeof elationDashJwtTokenDataSchema>;
|
|
18
18
|
export declare const elationClientSource: "elation-client";
|
|
@@ -21,13 +21,13 @@ export declare const elationClientJwtTokenDataSchema: z.ZodObject<{
|
|
|
21
21
|
cxId: z.ZodString;
|
|
22
22
|
source: z.ZodLiteral<"elation-client">;
|
|
23
23
|
}, "strip", z.ZodTypeAny, {
|
|
24
|
+
practiceId: string;
|
|
24
25
|
cxId: string;
|
|
25
26
|
source: "elation-client";
|
|
26
|
-
practiceId: string;
|
|
27
27
|
}, {
|
|
28
|
+
practiceId: string;
|
|
28
29
|
cxId: string;
|
|
29
30
|
source: "elation-client";
|
|
30
|
-
practiceId: string;
|
|
31
31
|
}>;
|
|
32
32
|
export type ElationClientJwtTokenData = z.infer<typeof elationClientJwtTokenDataSchema>;
|
|
33
33
|
export declare const elationClientJwtTokenResponseSchema: z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jwt-token.js","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/elation/jwt-token.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAoB;AACpB,sCAA2D;AAE9C,QAAA,iBAAiB,GAAG,mBAAU,CAAC,OAAgB,CAAC;AAChD,QAAA,6BAA6B,GAAG,aAAC,CAAC,MAAM,CAAC;IACpD,UAAU,EAAE,aAAC,CAAC,MAAM,EAAE;IACtB,SAAS,EAAE,aAAC,CAAC,MAAM,EAAE;IACrB,MAAM,EAAE,aAAC,CAAC,OAAO,CAAC,GAAG,
|
|
1
|
+
{"version":3,"file":"jwt-token.js","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/elation/jwt-token.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAoB;AACpB,sCAA2D;AAE9C,QAAA,iBAAiB,GAAG,mBAAU,CAAC,OAAgB,CAAC;AAChD,QAAA,6BAA6B,GAAG,aAAC,CAAC,MAAM,CAAC;IACpD,UAAU,EAAE,aAAC,CAAC,MAAM,EAAE;IACtB,SAAS,EAAE,aAAC,CAAC,MAAM,EAAE;IACrB,MAAM,EAAE,aAAC,CAAC,OAAO,CAAC,GAAG,QAAA,iBAAiB,EAAE,CAAC;CAC1C,CAAC,CAAC;AAGU,QAAA,mBAAmB,GAAG,GAAG,mBAAU,CAAC,OAAO,GAAG,2BAAkB,EAAW,CAAC;AAC5E,QAAA,+BAA+B,GAAG,aAAC,CAAC,MAAM,CAAC;IACtD,UAAU,EAAE,aAAC,CAAC,MAAM,EAAE;IACtB,IAAI,EAAE,aAAC,CAAC,MAAM,EAAE;IAChB,MAAM,EAAE,aAAC,CAAC,OAAO,CAAC,GAAG,QAAA,mBAAmB,EAAE,CAAC;CAC5C,CAAC,CAAC;AAGU,QAAA,mCAAmC,GAAG,aAAC,CAAC,MAAM,CAAC;IAC1D,KAAK,EAAE,aAAC,CAAC,MAAM,EAAE;IACjB,YAAY,EAAE,aAAC,CAAC,MAAM,EAAE;IACxB,UAAU,EAAE,aAAC,CAAC,MAAM,CAAC,MAAM,EAAE;CAC9B,CAAC,CAAC"}
|
|
@@ -12,16 +12,16 @@ export declare const patientSchema: z.ZodObject<{
|
|
|
12
12
|
zip: z.ZodNullable<z.ZodString>;
|
|
13
13
|
}, "strip", z.ZodTypeAny, {
|
|
14
14
|
state: string | null;
|
|
15
|
-
city: string | null;
|
|
16
|
-
zip: string | null;
|
|
17
15
|
address_line1: string | null;
|
|
18
16
|
address_line2: string | null;
|
|
19
|
-
}, {
|
|
20
|
-
state: string | null;
|
|
21
17
|
city: string | null;
|
|
22
18
|
zip: string | null;
|
|
19
|
+
}, {
|
|
20
|
+
state: string | null;
|
|
23
21
|
address_line1: string | null;
|
|
24
22
|
address_line2: string | null;
|
|
23
|
+
city: string | null;
|
|
24
|
+
zip: string | null;
|
|
25
25
|
}>>;
|
|
26
26
|
dob: z.ZodString;
|
|
27
27
|
phones: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
@@ -40,45 +40,45 @@ export declare const patientSchema: z.ZodObject<{
|
|
|
40
40
|
}>, "many">>;
|
|
41
41
|
ssn: z.ZodNullable<z.ZodString>;
|
|
42
42
|
}, "strip", z.ZodTypeAny, {
|
|
43
|
+
first_name: string | null;
|
|
44
|
+
last_name: string | null;
|
|
45
|
+
middle_name: string | null;
|
|
46
|
+
sex: string;
|
|
43
47
|
address: {
|
|
44
48
|
state: string | null;
|
|
45
|
-
city: string | null;
|
|
46
|
-
zip: string | null;
|
|
47
49
|
address_line1: string | null;
|
|
48
50
|
address_line2: string | null;
|
|
51
|
+
city: string | null;
|
|
52
|
+
zip: string | null;
|
|
49
53
|
} | null;
|
|
50
54
|
dob: string;
|
|
51
|
-
ssn: string | null;
|
|
52
|
-
first_name: string | null;
|
|
53
|
-
last_name: string | null;
|
|
54
|
-
middle_name: string | null;
|
|
55
|
-
sex: string;
|
|
56
55
|
phones: {
|
|
57
56
|
phone: string;
|
|
58
57
|
}[] | null;
|
|
59
58
|
emails: {
|
|
60
59
|
email: string;
|
|
61
60
|
}[] | null;
|
|
61
|
+
ssn: string | null;
|
|
62
62
|
}, {
|
|
63
|
+
first_name: string | null;
|
|
64
|
+
last_name: string | null;
|
|
65
|
+
middle_name: string | null;
|
|
66
|
+
sex: string;
|
|
63
67
|
address: {
|
|
64
68
|
state: string | null;
|
|
65
|
-
city: string | null;
|
|
66
|
-
zip: string | null;
|
|
67
69
|
address_line1: string | null;
|
|
68
70
|
address_line2: string | null;
|
|
71
|
+
city: string | null;
|
|
72
|
+
zip: string | null;
|
|
69
73
|
} | null;
|
|
70
74
|
dob: string;
|
|
71
|
-
ssn: string | null;
|
|
72
|
-
first_name: string | null;
|
|
73
|
-
last_name: string | null;
|
|
74
|
-
middle_name: string | null;
|
|
75
|
-
sex: string;
|
|
76
75
|
phones: {
|
|
77
76
|
phone: string;
|
|
78
77
|
}[] | null;
|
|
79
78
|
emails: {
|
|
80
79
|
email: string;
|
|
81
80
|
}[] | null;
|
|
81
|
+
ssn: string | null;
|
|
82
82
|
}>;
|
|
83
83
|
export type Patient = z.infer<typeof patientSchema>;
|
|
84
84
|
declare const metadata: z.ZodObject<{
|
|
@@ -5,12 +5,12 @@ export declare const practiceSchema: z.ZodObject<{
|
|
|
5
5
|
status: z.ZodString;
|
|
6
6
|
}, "strip", z.ZodTypeAny, {
|
|
7
7
|
id: string;
|
|
8
|
-
status: string;
|
|
9
8
|
physicians: string[];
|
|
9
|
+
status: string;
|
|
10
10
|
}, {
|
|
11
11
|
id: string;
|
|
12
|
-
status: string;
|
|
13
12
|
physicians: string[];
|
|
13
|
+
status: string;
|
|
14
14
|
}>;
|
|
15
15
|
export type Practice = z.infer<typeof practiceSchema>;
|
|
16
16
|
export declare const practicesSchema: z.ZodObject<{
|
|
@@ -20,24 +20,24 @@ export declare const practicesSchema: z.ZodObject<{
|
|
|
20
20
|
status: z.ZodString;
|
|
21
21
|
}, "strip", z.ZodTypeAny, {
|
|
22
22
|
id: string;
|
|
23
|
-
status: string;
|
|
24
23
|
physicians: string[];
|
|
24
|
+
status: string;
|
|
25
25
|
}, {
|
|
26
26
|
id: string;
|
|
27
|
-
status: string;
|
|
28
27
|
physicians: string[];
|
|
28
|
+
status: string;
|
|
29
29
|
}>, "many">;
|
|
30
30
|
}, "strip", z.ZodTypeAny, {
|
|
31
31
|
results: {
|
|
32
32
|
id: string;
|
|
33
|
-
status: string;
|
|
34
33
|
physicians: string[];
|
|
34
|
+
status: string;
|
|
35
35
|
}[];
|
|
36
36
|
}, {
|
|
37
37
|
results: {
|
|
38
38
|
id: string;
|
|
39
|
-
status: string;
|
|
40
39
|
physicians: string[];
|
|
40
|
+
status: string;
|
|
41
41
|
}[];
|
|
42
42
|
}>;
|
|
43
43
|
export type Practices = z.infer<typeof practicesSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"practice.js","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/elation/practice.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,cAAc,GAAG,OAAC,CAAC,MAAM,CAAC;IACrC,EAAE,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE;IACrB,UAAU,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE;IACrC,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;CACnB,CAAC,CAAC;AAGU,QAAA,eAAe,GAAG,OAAC,CAAC,MAAM,CAAC;IACtC,OAAO,EAAE,OAAC,CAAC,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"practice.js","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/elation/practice.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,cAAc,GAAG,OAAC,CAAC,MAAM,CAAC;IACrC,EAAE,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE;IACrB,UAAU,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE;IACrC,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;CACnB,CAAC,CAAC;AAGU,QAAA,eAAe,GAAG,OAAC,CAAC,MAAM,CAAC;IACtC,OAAO,EAAE,OAAC,CAAC,KAAK,CAAC,QAAA,cAAc,CAAC;CACjC,CAAC,CAAC"}
|
|
@@ -7,10 +7,10 @@ export declare const subscriptionSchema: z.ZodObject<{
|
|
|
7
7
|
resource: z.ZodEnum<["appointments", "patients"]>;
|
|
8
8
|
}, "strip", z.ZodTypeAny, {
|
|
9
9
|
id: string;
|
|
10
|
-
resource: "
|
|
10
|
+
resource: "appointments" | "patients";
|
|
11
11
|
}, {
|
|
12
12
|
id: string;
|
|
13
|
-
resource: "
|
|
13
|
+
resource: "appointments" | "patients";
|
|
14
14
|
}>;
|
|
15
15
|
export type Subscription = z.infer<typeof subscriptionSchema>;
|
|
16
16
|
export declare const subscriptionsSchema: z.ZodObject<{
|
|
@@ -19,20 +19,20 @@ export declare const subscriptionsSchema: z.ZodObject<{
|
|
|
19
19
|
resource: z.ZodEnum<["appointments", "patients"]>;
|
|
20
20
|
}, "strip", z.ZodTypeAny, {
|
|
21
21
|
id: string;
|
|
22
|
-
resource: "
|
|
22
|
+
resource: "appointments" | "patients";
|
|
23
23
|
}, {
|
|
24
24
|
id: string;
|
|
25
|
-
resource: "
|
|
25
|
+
resource: "appointments" | "patients";
|
|
26
26
|
}>, "many">;
|
|
27
27
|
}, "strip", z.ZodTypeAny, {
|
|
28
28
|
results: {
|
|
29
29
|
id: string;
|
|
30
|
-
resource: "
|
|
30
|
+
resource: "appointments" | "patients";
|
|
31
31
|
}[];
|
|
32
32
|
}, {
|
|
33
33
|
results: {
|
|
34
34
|
id: string;
|
|
35
|
-
resource: "
|
|
35
|
+
resource: "appointments" | "patients";
|
|
36
36
|
}[];
|
|
37
37
|
}>;
|
|
38
38
|
export type Subscriptions = z.infer<typeof subscriptionsSchema>;
|
|
@@ -41,11 +41,11 @@ export declare const createdSubscriptionSchema: z.ZodObject<{
|
|
|
41
41
|
target: z.ZodString;
|
|
42
42
|
signing_pub_key: z.ZodString;
|
|
43
43
|
}, "strip", z.ZodTypeAny, {
|
|
44
|
-
resource: "
|
|
44
|
+
resource: "appointments" | "patients";
|
|
45
45
|
target: string;
|
|
46
46
|
signing_pub_key: string;
|
|
47
47
|
}, {
|
|
48
|
-
resource: "
|
|
48
|
+
resource: "appointments" | "patients";
|
|
49
49
|
target: string;
|
|
50
50
|
signing_pub_key: string;
|
|
51
51
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscription.d.ts","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/elation/subscription.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,qBAAqB,
|
|
1
|
+
{"version":3,"file":"subscription.d.ts","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/elation/subscription.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,qBAAqB,YAAI,cAAc,EAAE,UAAU,CAAU,CAAC;AAC3E,MAAM,MAAM,oBAAoB,GAAG,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,CAAC,CAAC;AAC1E,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,MAAM,GAAG,QAAQ,IAAI,oBAAoB,CAEzF;AAED,eAAO,MAAM,kBAAkB;;;;;;;;;EAG7B,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAC9D,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;EAE9B,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE,eAAO,MAAM,yBAAyB;;;;;;;;;;;;EAIpC,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createdSubscriptionSchema = exports.subscriptionsSchema = exports.subscriptionSchema = exports.
|
|
3
|
+
exports.createdSubscriptionSchema = exports.subscriptionsSchema = exports.subscriptionSchema = exports.subscriptionResources = void 0;
|
|
4
|
+
exports.isSubscriptionResource = isSubscriptionResource;
|
|
4
5
|
const zod_1 = require("zod");
|
|
5
6
|
exports.subscriptionResources = ["appointments", "patients"];
|
|
6
7
|
function isSubscriptionResource(resource) {
|
|
7
8
|
return exports.subscriptionResources.includes(resource);
|
|
8
9
|
}
|
|
9
|
-
exports.isSubscriptionResource = isSubscriptionResource;
|
|
10
10
|
exports.subscriptionSchema = zod_1.z.object({
|
|
11
11
|
id: zod_1.z.coerce.string(),
|
|
12
12
|
resource: zod_1.z.enum(exports.subscriptionResources),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscription.js","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/elation/subscription.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"subscription.js","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/elation/subscription.ts"],"names":[],"mappings":";;;;AAAA,6BAAwB;AAEX,QAAA,qBAAqB,GAAG,CAAC,cAAc,EAAE,UAAU,CAAU,CAAC;AAE3E,gCAAuC,QAAgB;IACrD,OAAO,QAAA,qBAAqB,CAAC,QAAQ,CAAC,QAAgC,CAAC,CAAC;AAC1E,CAAC;AAEY,QAAA,kBAAkB,GAAG,OAAC,CAAC,MAAM,CAAC;IACzC,EAAE,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE;IACrB,QAAQ,EAAE,OAAC,CAAC,IAAI,CAAC,QAAA,qBAAqB,CAAC;CACxC,CAAC,CAAC;AAEU,QAAA,mBAAmB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC1C,OAAO,EAAE,QAAA,kBAAkB,CAAC,KAAK,EAAE;CACpC,CAAC,CAAC;AAGU,QAAA,yBAAyB,GAAG,OAAC,CAAC,MAAM,CAAC;IAChD,QAAQ,EAAE,OAAC,CAAC,IAAI,CAAC,QAAA,qBAAqB,CAAC;IACvC,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;IAClB,eAAe,EAAE,OAAC,CAAC,MAAM,EAAE;CAC5B,CAAC,CAAC"}
|
|
@@ -10,12 +10,12 @@ export declare const embedDashJwtTokenDataSchema: z.ZodObject<{
|
|
|
10
10
|
source: z.ZodLiteral<"embed">;
|
|
11
11
|
}, "strip", z.ZodTypeAny, {
|
|
12
12
|
cxId: string;
|
|
13
|
-
source: "embed";
|
|
14
13
|
practiceId: string;
|
|
14
|
+
source: "embed";
|
|
15
15
|
}, {
|
|
16
16
|
cxId: string;
|
|
17
|
-
source: "embed";
|
|
18
17
|
practiceId: string;
|
|
18
|
+
source: "embed";
|
|
19
19
|
}>;
|
|
20
20
|
export type EmbedDashJwtTokenData = z.infer<typeof embedDashJwtTokenDataSchema>;
|
|
21
21
|
export declare const createEmbedTokenSchema: z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jwt-token.js","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/embed/jwt-token.ts"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAC1B,qEAA6C;AAC7C,6BAAwB;AACxB,sCAAyC;AAEzC,eAAK,CAAC,MAAM,CAAC,kBAAQ,CAAC,CAAC;AAEV,QAAA,eAAe,GAAG,qBAAY,CAAC,KAAc,CAAC;AAC9C,QAAA,oBAAoB,GAAG,eAAK,CAAC,QAAQ,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC;AACnD,QAAA,oBAAoB,GAAG,
|
|
1
|
+
{"version":3,"file":"jwt-token.js","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/embed/jwt-token.ts"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAC1B,qEAA6C;AAC7C,6BAAwB;AACxB,sCAAyC;AAEzC,eAAK,CAAC,MAAM,CAAC,kBAAQ,CAAC,CAAC;AAEV,QAAA,eAAe,GAAG,qBAAY,CAAC,KAAc,CAAC;AAC9C,QAAA,oBAAoB,GAAG,eAAK,CAAC,QAAQ,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC;AACnD,QAAA,oBAAoB,GAAG,QAAA,oBAAoB,CAAC,SAAS,EAAE,CAAC;AAExD,QAAA,2BAA2B,GAAG,OAAC,CAAC,MAAM,CAAC;IAClD,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE;IACtB,MAAM,EAAE,OAAC,CAAC,OAAO,CAAC,GAAG,QAAA,eAAe,EAAE,CAAC;CACxC,CAAC,CAAC;AAGU,QAAA,sBAAsB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC7C,mBAAmB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,GAAG,CAAC,QAAA,oBAAoB,CAAC,CAAC,QAAQ,EAAE;CACtF,CAAC,CAAC"}
|
|
@@ -4,11 +4,11 @@ export declare const ehrFhirResourceSchema: z.ZodIntersection<z.ZodObject<{
|
|
|
4
4
|
id: z.ZodOptional<z.ZodString>;
|
|
5
5
|
resourceType: z.ZodOptional<z.ZodString>;
|
|
6
6
|
}, "strip", z.ZodTypeAny, {
|
|
7
|
-
resourceType?: string | undefined;
|
|
8
7
|
id?: string | undefined;
|
|
9
|
-
}, {
|
|
10
8
|
resourceType?: string | undefined;
|
|
9
|
+
}, {
|
|
11
10
|
id?: string | undefined;
|
|
11
|
+
resourceType?: string | undefined;
|
|
12
12
|
}>, z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
13
13
|
export type EhrFhirResource = z.infer<typeof ehrFhirResourceSchema>;
|
|
14
14
|
export declare const ehrFhirResourceBundleEntrySchema: z.ZodObject<{
|
|
@@ -16,21 +16,21 @@ export declare const ehrFhirResourceBundleEntrySchema: z.ZodObject<{
|
|
|
16
16
|
id: z.ZodOptional<z.ZodString>;
|
|
17
17
|
resourceType: z.ZodOptional<z.ZodString>;
|
|
18
18
|
}, "strip", z.ZodTypeAny, {
|
|
19
|
-
resourceType?: string | undefined;
|
|
20
19
|
id?: string | undefined;
|
|
21
|
-
}, {
|
|
22
20
|
resourceType?: string | undefined;
|
|
21
|
+
}, {
|
|
23
22
|
id?: string | undefined;
|
|
23
|
+
resourceType?: string | undefined;
|
|
24
24
|
}>, z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
25
25
|
}, "strip", z.ZodTypeAny, {
|
|
26
26
|
resource?: ({
|
|
27
|
-
resourceType?: string | undefined;
|
|
28
27
|
id?: string | undefined;
|
|
28
|
+
resourceType?: string | undefined;
|
|
29
29
|
} & Record<string, any>) | undefined;
|
|
30
30
|
}, {
|
|
31
31
|
resource?: ({
|
|
32
|
-
resourceType?: string | undefined;
|
|
33
32
|
id?: string | undefined;
|
|
33
|
+
resourceType?: string | undefined;
|
|
34
34
|
} & Record<string, any>) | undefined;
|
|
35
35
|
}>;
|
|
36
36
|
export type EhrFhirResourceBundleEntry = z.infer<typeof ehrFhirResourceBundleEntrySchema>;
|
|
@@ -40,11 +40,11 @@ export declare const ehrFhirResourceBundleSchema: z.ZodObject<z.objectUtil.exten
|
|
|
40
40
|
relation: z.ZodString;
|
|
41
41
|
url: z.ZodString;
|
|
42
42
|
}, "strip", z.ZodTypeAny, {
|
|
43
|
-
url: string;
|
|
44
43
|
relation: string;
|
|
45
|
-
}, {
|
|
46
44
|
url: string;
|
|
45
|
+
}, {
|
|
47
46
|
relation: string;
|
|
47
|
+
url: string;
|
|
48
48
|
}>, "many">>;
|
|
49
49
|
}, {
|
|
50
50
|
entry: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -52,45 +52,45 @@ export declare const ehrFhirResourceBundleSchema: z.ZodObject<z.objectUtil.exten
|
|
|
52
52
|
id: z.ZodOptional<z.ZodString>;
|
|
53
53
|
resourceType: z.ZodOptional<z.ZodString>;
|
|
54
54
|
}, "strip", z.ZodTypeAny, {
|
|
55
|
-
resourceType?: string | undefined;
|
|
56
55
|
id?: string | undefined;
|
|
57
|
-
}, {
|
|
58
56
|
resourceType?: string | undefined;
|
|
57
|
+
}, {
|
|
59
58
|
id?: string | undefined;
|
|
59
|
+
resourceType?: string | undefined;
|
|
60
60
|
}>, z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
61
61
|
}, "strip", z.ZodTypeAny, {
|
|
62
62
|
resource?: ({
|
|
63
|
-
resourceType?: string | undefined;
|
|
64
63
|
id?: string | undefined;
|
|
64
|
+
resourceType?: string | undefined;
|
|
65
65
|
} & Record<string, any>) | undefined;
|
|
66
66
|
}, {
|
|
67
67
|
resource?: ({
|
|
68
|
-
resourceType?: string | undefined;
|
|
69
68
|
id?: string | undefined;
|
|
69
|
+
resourceType?: string | undefined;
|
|
70
70
|
} & Record<string, any>) | undefined;
|
|
71
71
|
}>, "many">>;
|
|
72
72
|
}>, "strip", z.ZodTypeAny, {
|
|
73
73
|
resourceType: "Bundle";
|
|
74
74
|
link?: {
|
|
75
|
-
url: string;
|
|
76
75
|
relation: string;
|
|
76
|
+
url: string;
|
|
77
77
|
}[] | undefined;
|
|
78
78
|
entry?: {
|
|
79
79
|
resource?: ({
|
|
80
|
-
resourceType?: string | undefined;
|
|
81
80
|
id?: string | undefined;
|
|
81
|
+
resourceType?: string | undefined;
|
|
82
82
|
} & Record<string, any>) | undefined;
|
|
83
83
|
}[] | undefined;
|
|
84
84
|
}, {
|
|
85
85
|
resourceType: "Bundle";
|
|
86
86
|
link?: {
|
|
87
|
-
url: string;
|
|
88
87
|
relation: string;
|
|
88
|
+
url: string;
|
|
89
89
|
}[] | undefined;
|
|
90
90
|
entry?: {
|
|
91
91
|
resource?: ({
|
|
92
|
-
resourceType?: string | undefined;
|
|
93
92
|
id?: string | undefined;
|
|
93
|
+
resourceType?: string | undefined;
|
|
94
94
|
} & Record<string, any>) | undefined;
|
|
95
95
|
}[] | undefined;
|
|
96
96
|
}>;
|
|
@@ -99,11 +99,11 @@ export declare const ehrStrictFhirResourceSchema: z.ZodIntersection<z.ZodObject<
|
|
|
99
99
|
id: z.ZodString;
|
|
100
100
|
resourceType: z.ZodString;
|
|
101
101
|
}, "strip", z.ZodTypeAny, {
|
|
102
|
-
resourceType: string;
|
|
103
102
|
id: string;
|
|
104
|
-
}, {
|
|
105
103
|
resourceType: string;
|
|
104
|
+
}, {
|
|
106
105
|
id: string;
|
|
106
|
+
resourceType: string;
|
|
107
107
|
}>, z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
108
108
|
export type EhrStrictFhirResource = z.infer<typeof ehrStrictFhirResourceSchema>;
|
|
109
109
|
export declare const ehrStrictFhirResourceBundleEntrySchema: z.ZodObject<{
|
|
@@ -111,21 +111,21 @@ export declare const ehrStrictFhirResourceBundleEntrySchema: z.ZodObject<{
|
|
|
111
111
|
id: z.ZodString;
|
|
112
112
|
resourceType: z.ZodString;
|
|
113
113
|
}, "strip", z.ZodTypeAny, {
|
|
114
|
-
resourceType: string;
|
|
115
114
|
id: string;
|
|
116
|
-
}, {
|
|
117
115
|
resourceType: string;
|
|
116
|
+
}, {
|
|
118
117
|
id: string;
|
|
118
|
+
resourceType: string;
|
|
119
119
|
}>, z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
120
120
|
}, "strip", z.ZodTypeAny, {
|
|
121
121
|
resource: {
|
|
122
|
-
resourceType: string;
|
|
123
122
|
id: string;
|
|
123
|
+
resourceType: string;
|
|
124
124
|
} & Record<string, any>;
|
|
125
125
|
}, {
|
|
126
126
|
resource: {
|
|
127
|
-
resourceType: string;
|
|
128
127
|
id: string;
|
|
128
|
+
resourceType: string;
|
|
129
129
|
} & Record<string, any>;
|
|
130
130
|
}>;
|
|
131
131
|
export type EhrStrictFhirResourceBundleEntry = z.infer<typeof ehrStrictFhirResourceBundleEntrySchema>;
|
|
@@ -135,11 +135,11 @@ export declare const ehrStrictFhirResourceBundleSchema: z.ZodObject<z.objectUtil
|
|
|
135
135
|
relation: z.ZodString;
|
|
136
136
|
url: z.ZodString;
|
|
137
137
|
}, "strip", z.ZodTypeAny, {
|
|
138
|
-
url: string;
|
|
139
138
|
relation: string;
|
|
140
|
-
}, {
|
|
141
139
|
url: string;
|
|
140
|
+
}, {
|
|
142
141
|
relation: string;
|
|
142
|
+
url: string;
|
|
143
143
|
}>, "many">>;
|
|
144
144
|
}, {
|
|
145
145
|
entry: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -147,45 +147,45 @@ export declare const ehrStrictFhirResourceBundleSchema: z.ZodObject<z.objectUtil
|
|
|
147
147
|
id: z.ZodString;
|
|
148
148
|
resourceType: z.ZodString;
|
|
149
149
|
}, "strip", z.ZodTypeAny, {
|
|
150
|
-
resourceType: string;
|
|
151
150
|
id: string;
|
|
152
|
-
}, {
|
|
153
151
|
resourceType: string;
|
|
152
|
+
}, {
|
|
154
153
|
id: string;
|
|
154
|
+
resourceType: string;
|
|
155
155
|
}>, z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
156
156
|
}, "strip", z.ZodTypeAny, {
|
|
157
157
|
resource: {
|
|
158
|
-
resourceType: string;
|
|
159
158
|
id: string;
|
|
159
|
+
resourceType: string;
|
|
160
160
|
} & Record<string, any>;
|
|
161
161
|
}, {
|
|
162
162
|
resource: {
|
|
163
|
-
resourceType: string;
|
|
164
163
|
id: string;
|
|
164
|
+
resourceType: string;
|
|
165
165
|
} & Record<string, any>;
|
|
166
166
|
}>, "many">>;
|
|
167
167
|
}>, "strip", z.ZodTypeAny, {
|
|
168
168
|
resourceType: "Bundle";
|
|
169
169
|
link?: {
|
|
170
|
-
url: string;
|
|
171
170
|
relation: string;
|
|
171
|
+
url: string;
|
|
172
172
|
}[] | undefined;
|
|
173
173
|
entry?: {
|
|
174
174
|
resource: {
|
|
175
|
-
resourceType: string;
|
|
176
175
|
id: string;
|
|
176
|
+
resourceType: string;
|
|
177
177
|
} & Record<string, any>;
|
|
178
178
|
}[] | undefined;
|
|
179
179
|
}, {
|
|
180
180
|
resourceType: "Bundle";
|
|
181
181
|
link?: {
|
|
182
|
-
url: string;
|
|
183
182
|
relation: string;
|
|
183
|
+
url: string;
|
|
184
184
|
}[] | undefined;
|
|
185
185
|
entry?: {
|
|
186
186
|
resource: {
|
|
187
|
-
resourceType: string;
|
|
188
187
|
id: string;
|
|
188
|
+
resourceType: string;
|
|
189
189
|
} & Record<string, any>;
|
|
190
190
|
}[] | undefined;
|
|
191
191
|
}>;
|
|
@@ -208,14 +208,14 @@ export declare const fhirOperationOutcomeIssueSchema: z.ZodObject<{
|
|
|
208
208
|
text: string;
|
|
209
209
|
}>;
|
|
210
210
|
}, "strip", z.ZodTypeAny, {
|
|
211
|
-
code: string;
|
|
212
211
|
severity: string;
|
|
212
|
+
code: string;
|
|
213
213
|
details: {
|
|
214
214
|
text: string;
|
|
215
215
|
};
|
|
216
216
|
}, {
|
|
217
|
-
code: string;
|
|
218
217
|
severity: string;
|
|
218
|
+
code: string;
|
|
219
219
|
details: {
|
|
220
220
|
text: string;
|
|
221
221
|
};
|
|
@@ -234,14 +234,14 @@ export declare const fhirOperationOutcomeSchema: z.ZodObject<{
|
|
|
234
234
|
text: string;
|
|
235
235
|
}>;
|
|
236
236
|
}, "strip", z.ZodTypeAny, {
|
|
237
|
-
code: string;
|
|
238
237
|
severity: string;
|
|
238
|
+
code: string;
|
|
239
239
|
details: {
|
|
240
240
|
text: string;
|
|
241
241
|
};
|
|
242
242
|
}, {
|
|
243
|
-
code: string;
|
|
244
243
|
severity: string;
|
|
244
|
+
code: string;
|
|
245
245
|
details: {
|
|
246
246
|
text: string;
|
|
247
247
|
};
|
|
@@ -249,8 +249,8 @@ export declare const fhirOperationOutcomeSchema: z.ZodObject<{
|
|
|
249
249
|
}, "strip", z.ZodTypeAny, {
|
|
250
250
|
resourceType: "OperationOutcome";
|
|
251
251
|
issue: {
|
|
252
|
-
code: string;
|
|
253
252
|
severity: string;
|
|
253
|
+
code: string;
|
|
254
254
|
details: {
|
|
255
255
|
text: string;
|
|
256
256
|
};
|
|
@@ -258,8 +258,8 @@ export declare const fhirOperationOutcomeSchema: z.ZodObject<{
|
|
|
258
258
|
}, {
|
|
259
259
|
resourceType: "OperationOutcome";
|
|
260
260
|
issue: {
|
|
261
|
-
code: string;
|
|
262
261
|
severity: string;
|
|
262
|
+
code: string;
|
|
263
263
|
details: {
|
|
264
264
|
text: string;
|
|
265
265
|
};
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.fhirOperationOutcomeSchema = exports.fhirOperationOutcomeIssueSchema = exports.
|
|
3
|
+
exports.fhirOperationOutcomeSchema = exports.fhirOperationOutcomeIssueSchema = exports.ehrStrictFhirResourceBundleSchema = exports.ehrStrictFhirResourceBundleEntrySchema = exports.ehrStrictFhirResourceSchema = exports.ehrFhirResourceBundleSchema = exports.ehrFhirResourceBundleEntrySchema = exports.ehrFhirResourceSchema = void 0;
|
|
4
|
+
exports.createBundleFromResourceList = createBundleFromResourceList;
|
|
5
|
+
exports.createStrictBundleFromResourceList = createStrictBundleFromResourceList;
|
|
6
|
+
exports.getDefaultBundle = getDefaultBundle;
|
|
4
7
|
const zod_1 = require("zod");
|
|
5
8
|
const ehrFhirResourceSharedFieldsSchema = zod_1.z.record(zod_1.z.string(), zod_1.z.any());
|
|
6
9
|
const ehrFhirBundleSharedFieldsSchema = zod_1.z.object({
|
|
@@ -33,21 +36,18 @@ function createBundleFromResourceList(resourceList) {
|
|
|
33
36
|
entry: resourceList.map(resource => ({ resource })),
|
|
34
37
|
};
|
|
35
38
|
}
|
|
36
|
-
exports.createBundleFromResourceList = createBundleFromResourceList;
|
|
37
39
|
function createStrictBundleFromResourceList(resourceList) {
|
|
38
40
|
return {
|
|
39
41
|
resourceType: "Bundle",
|
|
40
42
|
entry: resourceList.map(resource => ({ resource })),
|
|
41
43
|
};
|
|
42
44
|
}
|
|
43
|
-
exports.createStrictBundleFromResourceList = createStrictBundleFromResourceList;
|
|
44
45
|
function getDefaultBundle() {
|
|
45
46
|
return {
|
|
46
47
|
resourceType: "Bundle",
|
|
47
48
|
entry: [],
|
|
48
49
|
};
|
|
49
50
|
}
|
|
50
|
-
exports.getDefaultBundle = getDefaultBundle;
|
|
51
51
|
exports.fhirOperationOutcomeIssueSchema = zod_1.z.object({
|
|
52
52
|
severity: zod_1.z.string(),
|
|
53
53
|
code: zod_1.z.string(),
|