@metriport/shared 0.33.5 → 0.33.6-alpha.0
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/domain/network-query/__tests__/source.test.js +12 -0
- package/dist/domain/network-query/__tests__/source.test.js.map +1 -1
- package/dist/domain/network-query/source.d.ts +5 -0
- package/dist/domain/network-query/source.d.ts.map +1 -1
- package/dist/domain/network-query/source.js +2 -0
- package/dist/domain/network-query/source.js.map +1 -1
- package/dist/domain/patient/adt-demographics.js.map +1 -1
- package/dist/domain/patient/patient-import/create.d.ts.map +1 -1
- package/dist/domain/patient/patient-import/create.js +3 -1
- package/dist/domain/patient/patient-import/create.js.map +1 -1
- package/dist/domain/patient/patient-import/types.d.ts +3 -0
- package/dist/domain/patient/patient-import/types.d.ts.map +1 -1
- package/dist/domain/patient/patient-import/types.js.map +1 -1
- package/dist/{src/error/bad-request.d.ts → error/document-patient-mismatch.d.ts} +2 -2
- package/dist/error/document-patient-mismatch.d.ts.map +1 -0
- package/dist/error/document-patient-mismatch.js +12 -0
- package/dist/error/document-patient-mismatch.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/dist/src/__tests__/env-setup.d.ts +0 -2
- package/dist/src/__tests__/env-setup.d.ts.map +0 -1
- package/dist/src/__tests__/env-setup.js +0 -45
- package/dist/src/__tests__/env-setup.js.map +0 -1
- package/dist/src/api/index.d.ts +0 -2
- package/dist/src/api/index.d.ts.map +0 -1
- package/dist/src/api/index.js +0 -18
- package/dist/src/api/index.js.map +0 -1
- package/dist/src/api/pagination.d.ts +0 -13
- package/dist/src/api/pagination.d.ts.map +0 -1
- package/dist/src/api/pagination.js +0 -3
- package/dist/src/api/pagination.js.map +0 -1
- package/dist/src/common/__tests__/boolean.test.d.ts +0 -2
- package/dist/src/common/__tests__/boolean.test.d.ts.map +0 -1
- package/dist/src/common/__tests__/boolean.test.js +0 -46
- package/dist/src/common/__tests__/boolean.test.js.map +0 -1
- package/dist/src/common/__tests__/date.test.d.ts +0 -2
- package/dist/src/common/__tests__/date.test.d.ts.map +0 -1
- package/dist/src/common/__tests__/date.test.js +0 -225
- package/dist/src/common/__tests__/date.test.js.map +0 -1
- package/dist/src/common/__tests__/demographics.test.d.ts +0 -2
- package/dist/src/common/__tests__/demographics.test.d.ts.map +0 -1
- package/dist/src/common/__tests__/demographics.test.js +0 -187
- package/dist/src/common/__tests__/demographics.test.js.map +0 -1
- package/dist/src/common/__tests__/html-encode.test.d.ts +0 -2
- package/dist/src/common/__tests__/html-encode.test.d.ts.map +0 -1
- package/dist/src/common/__tests__/html-encode.test.js +0 -31
- package/dist/src/common/__tests__/html-encode.test.js.map +0 -1
- package/dist/src/common/__tests__/normalize-oid.test.d.ts +0 -2
- package/dist/src/common/__tests__/normalize-oid.test.d.ts.map +0 -1
- package/dist/src/common/__tests__/normalize-oid.test.js +0 -68
- package/dist/src/common/__tests__/normalize-oid.test.js.map +0 -1
- package/dist/src/common/__tests__/npi.d.ts +0 -7
- package/dist/src/common/__tests__/npi.d.ts.map +0 -1
- package/dist/src/common/__tests__/npi.js +0 -31
- package/dist/src/common/__tests__/npi.js.map +0 -1
- package/dist/src/common/__tests__/number.test.d.ts +0 -2
- package/dist/src/common/__tests__/number.test.d.ts.map +0 -1
- package/dist/src/common/__tests__/number.test.js +0 -33
- package/dist/src/common/__tests__/number.test.js.map +0 -1
- package/dist/src/common/__tests__/oid.d.ts +0 -20
- package/dist/src/common/__tests__/oid.d.ts.map +0 -1
- package/dist/src/common/__tests__/oid.js +0 -29
- package/dist/src/common/__tests__/oid.js.map +0 -1
- package/dist/src/common/__tests__/oid.test.d.ts +0 -2
- package/dist/src/common/__tests__/oid.test.d.ts.map +0 -1
- package/dist/src/common/__tests__/oid.test.js +0 -51
- package/dist/src/common/__tests__/oid.test.js.map +0 -1
- package/dist/src/common/__tests__/retry.test.d.ts +0 -2
- package/dist/src/common/__tests__/retry.test.d.ts.map +0 -1
- package/dist/src/common/__tests__/retry.test.js +0 -263
- package/dist/src/common/__tests__/retry.test.js.map +0 -1
- package/dist/src/common/__tests__/string.test.d.ts +0 -2
- package/dist/src/common/__tests__/string.test.d.ts.map +0 -1
- package/dist/src/common/__tests__/string.test.js +0 -149
- package/dist/src/common/__tests__/string.test.js.map +0 -1
- package/dist/src/common/__tests__/title-case.test.d.ts +0 -2
- package/dist/src/common/__tests__/title-case.test.d.ts.map +0 -1
- package/dist/src/common/__tests__/title-case.test.js +0 -71
- package/dist/src/common/__tests__/title-case.test.js.map +0 -1
- package/dist/src/common/__tests__/validate-npi.test.d.ts +0 -2
- package/dist/src/common/__tests__/validate-npi.test.d.ts.map +0 -1
- package/dist/src/common/__tests__/validate-npi.test.js +0 -24
- package/dist/src/common/__tests__/validate-npi.test.js.map +0 -1
- package/dist/src/common/array.d.ts +0 -2
- package/dist/src/common/array.d.ts.map +0 -1
- package/dist/src/common/array.js +0 -10
- package/dist/src/common/array.js.map +0 -1
- package/dist/src/common/boolean.d.ts +0 -9
- package/dist/src/common/boolean.d.ts.map +0 -1
- package/dist/src/common/boolean.js +0 -26
- package/dist/src/common/boolean.js.map +0 -1
- package/dist/src/common/date.d.ts +0 -68
- package/dist/src/common/date.d.ts.map +0 -1
- package/dist/src/common/date.js +0 -218
- package/dist/src/common/date.js.map +0 -1
- package/dist/src/common/demographics.d.ts +0 -24
- package/dist/src/common/demographics.d.ts.map +0 -1
- package/dist/src/common/demographics.js +0 -115
- package/dist/src/common/demographics.js.map +0 -1
- package/dist/src/common/duration.d.ts +0 -8
- package/dist/src/common/duration.d.ts.map +0 -1
- package/dist/src/common/duration.js +0 -32
- package/dist/src/common/duration.js.map +0 -1
- package/dist/src/common/email.d.ts +0 -5
- package/dist/src/common/email.d.ts.map +0 -1
- package/dist/src/common/email.js +0 -13
- package/dist/src/common/email.js.map +0 -1
- package/dist/src/common/env-var.d.ts +0 -12
- package/dist/src/common/env-var.d.ts.map +0 -1
- package/dist/src/common/env-var.js +0 -52
- package/dist/src/common/env-var.js.map +0 -1
- package/dist/src/common/error.d.ts +0 -2
- package/dist/src/common/error.d.ts.map +0 -1
- package/dist/src/common/error.js +0 -7
- package/dist/src/common/error.js.map +0 -1
- package/dist/src/common/filter-map.d.ts +0 -11
- package/dist/src/common/filter-map.d.ts.map +0 -1
- package/dist/src/common/filter-map.js +0 -16
- package/dist/src/common/filter-map.js.map +0 -1
- package/dist/src/common/general.d.ts +0 -6
- package/dist/src/common/general.d.ts.map +0 -1
- package/dist/src/common/general.js +0 -15
- package/dist/src/common/general.js.map +0 -1
- package/dist/src/common/html.d.ts +0 -2
- package/dist/src/common/html.d.ts.map +0 -1
- package/dist/src/common/html.js +0 -12
- package/dist/src/common/html.js.map +0 -1
- package/dist/src/common/merge-settings.d.ts +0 -21
- package/dist/src/common/merge-settings.d.ts.map +0 -1
- package/dist/src/common/merge-settings.js +0 -28
- package/dist/src/common/merge-settings.js.map +0 -1
- package/dist/src/common/metriport-organization.d.ts +0 -3
- package/dist/src/common/metriport-organization.d.ts.map +0 -1
- package/dist/src/common/metriport-organization.js +0 -25
- package/dist/src/common/metriport-organization.js.map +0 -1
- package/dist/src/common/net.d.ts +0 -2
- package/dist/src/common/net.d.ts.map +0 -1
- package/dist/src/common/net.js +0 -15
- package/dist/src/common/net.js.map +0 -1
- package/dist/src/common/normalize-oid.d.ts +0 -9
- package/dist/src/common/normalize-oid.d.ts.map +0 -1
- package/dist/src/common/normalize-oid.js +0 -92
- package/dist/src/common/normalize-oid.js.map +0 -1
- package/dist/src/common/numbers.d.ts +0 -21
- package/dist/src/common/numbers.d.ts.map +0 -1
- package/dist/src/common/numbers.js +0 -67
- package/dist/src/common/numbers.js.map +0 -1
- package/dist/src/common/purpose-of-use.d.ts +0 -30
- package/dist/src/common/purpose-of-use.d.ts.map +0 -1
- package/dist/src/common/purpose-of-use.js +0 -35
- package/dist/src/common/purpose-of-use.js.map +0 -1
- package/dist/src/common/response.d.ts +0 -5
- package/dist/src/common/response.d.ts.map +0 -1
- package/dist/src/common/response.js +0 -16
- package/dist/src/common/response.js.map +0 -1
- package/dist/src/common/retry.d.ts +0 -67
- package/dist/src/common/retry.d.ts.map +0 -1
- package/dist/src/common/retry.js +0 -127
- package/dist/src/common/retry.js.map +0 -1
- package/dist/src/common/sleep.d.ts +0 -14
- package/dist/src/common/sleep.d.ts.map +0 -1
- package/dist/src/common/sleep.js +0 -28
- package/dist/src/common/sleep.js.map +0 -1
- package/dist/src/common/sql.d.ts +0 -17
- package/dist/src/common/sql.d.ts.map +0 -1
- package/dist/src/common/sql.js +0 -3
- package/dist/src/common/sql.js.map +0 -1
- package/dist/src/common/string.d.ts +0 -22
- package/dist/src/common/string.d.ts.map +0 -1
- package/dist/src/common/string.js +0 -62
- package/dist/src/common/string.js.map +0 -1
- package/dist/src/common/timer.d.ts +0 -18
- package/dist/src/common/timer.d.ts.map +0 -1
- package/dist/src/common/timer.js +0 -25
- package/dist/src/common/timer.js.map +0 -1
- package/dist/src/common/title-case.d.ts +0 -3
- package/dist/src/common/title-case.d.ts.map +0 -1
- package/dist/src/common/title-case.js +0 -25
- package/dist/src/common/title-case.js.map +0 -1
- package/dist/src/common/types.d.ts +0 -9
- package/dist/src/common/types.d.ts.map +0 -1
- package/dist/src/common/types.js +0 -16
- package/dist/src/common/types.js.map +0 -1
- package/dist/src/common/uuid.d.ts +0 -5
- package/dist/src/common/uuid.d.ts.map +0 -1
- package/dist/src/common/uuid.js +0 -11
- package/dist/src/common/uuid.js.map +0 -1
- package/dist/src/common/validate-npi.d.ts +0 -10
- package/dist/src/common/validate-npi.d.ts.map +0 -1
- package/dist/src/common/validate-npi.js +0 -40
- package/dist/src/common/validate-npi.js.map +0 -1
- package/dist/src/common/xml-parser.d.ts +0 -3
- package/dist/src/common/xml-parser.d.ts.map +0 -1
- package/dist/src/common/xml-parser.js +0 -16
- package/dist/src/common/xml-parser.js.map +0 -1
- package/dist/src/common/zod.d.ts +0 -3
- package/dist/src/common/zod.d.ts.map +0 -1
- package/dist/src/common/zod.js +0 -11
- package/dist/src/common/zod.js.map +0 -1
- package/dist/src/domain/__tests__/cursor-utils.test.d.ts +0 -2
- package/dist/src/domain/__tests__/cursor-utils.test.d.ts.map +0 -1
- package/dist/src/domain/__tests__/cursor-utils.test.js +0 -216
- package/dist/src/domain/__tests__/cursor-utils.test.js.map +0 -1
- package/dist/src/domain/__tests__/dob.test.d.ts +0 -2
- package/dist/src/domain/__tests__/dob.test.d.ts.map +0 -1
- package/dist/src/domain/__tests__/dob.test.js +0 -37
- package/dist/src/domain/__tests__/dob.test.js.map +0 -1
- package/dist/src/domain/__tests__/gender.test.d.ts +0 -2
- package/dist/src/domain/__tests__/gender.test.d.ts.map +0 -1
- package/dist/src/domain/__tests__/gender.test.js +0 -64
- package/dist/src/domain/__tests__/gender.test.js.map +0 -1
- package/dist/src/domain/__tests__/pagination-schema.test.d.ts +0 -2
- package/dist/src/domain/__tests__/pagination-schema.test.d.ts.map +0 -1
- package/dist/src/domain/__tests__/pagination-schema.test.js +0 -165
- package/dist/src/domain/__tests__/pagination-schema.test.js.map +0 -1
- package/dist/src/domain/address/__tests__/country.test.d.ts +0 -2
- package/dist/src/domain/address/__tests__/country.test.d.ts.map +0 -1
- package/dist/src/domain/address/__tests__/country.test.js +0 -51
- package/dist/src/domain/address/__tests__/country.test.js.map +0 -1
- package/dist/src/domain/address/__tests__/state.test.d.ts +0 -2
- package/dist/src/domain/address/__tests__/state.test.d.ts.map +0 -1
- package/dist/src/domain/address/__tests__/state.test.js +0 -40
- package/dist/src/domain/address/__tests__/state.test.js.map +0 -1
- package/dist/src/domain/address/__tests__/territory.test.d.ts +0 -2
- package/dist/src/domain/address/__tests__/territory.test.d.ts.map +0 -1
- package/dist/src/domain/address/__tests__/territory.test.js +0 -35
- package/dist/src/domain/address/__tests__/territory.test.js.map +0 -1
- package/dist/src/domain/address/__tests__/zip.test.d.ts +0 -2
- package/dist/src/domain/address/__tests__/zip.test.d.ts.map +0 -1
- package/dist/src/domain/address/__tests__/zip.test.js +0 -162
- package/dist/src/domain/address/__tests__/zip.test.js.map +0 -1
- package/dist/src/domain/address/city.d.ts +0 -2
- package/dist/src/domain/address/city.d.ts.map +0 -1
- package/dist/src/domain/address/city.js +0 -8
- package/dist/src/domain/address/city.js.map +0 -1
- package/dist/src/domain/address/country.d.ts +0 -4
- package/dist/src/domain/address/country.d.ts.map +0 -1
- package/dist/src/domain/address/country.js +0 -31
- package/dist/src/domain/address/country.js.map +0 -1
- package/dist/src/domain/address/index.d.ts +0 -6
- package/dist/src/domain/address/index.d.ts.map +0 -1
- package/dist/src/domain/address/index.js +0 -20
- package/dist/src/domain/address/index.js.map +0 -1
- package/dist/src/domain/address/state.d.ts +0 -58
- package/dist/src/domain/address/state.d.ts.map +0 -1
- package/dist/src/domain/address/state.js +0 -179
- package/dist/src/domain/address/state.js.map +0 -1
- package/dist/src/domain/address/territory.d.ts +0 -10
- package/dist/src/domain/address/territory.d.ts.map +0 -1
- package/dist/src/domain/address/territory.js +0 -32
- package/dist/src/domain/address/territory.js.map +0 -1
- package/dist/src/domain/address/zip.d.ts +0 -9
- package/dist/src/domain/address/zip.d.ts.map +0 -1
- package/dist/src/domain/address/zip.js +0 -86
- package/dist/src/domain/address/zip.js.map +0 -1
- package/dist/src/domain/base-domain.d.ts +0 -14
- package/dist/src/domain/base-domain.d.ts.map +0 -1
- package/dist/src/domain/base-domain.js +0 -3
- package/dist/src/domain/base-domain.js.map +0 -1
- package/dist/src/domain/baseDto.d.ts +0 -9
- package/dist/src/domain/baseDto.d.ts.map +0 -1
- package/dist/src/domain/baseDto.js +0 -10
- package/dist/src/domain/baseDto.js.map +0 -1
- package/dist/src/domain/care-gap.d.ts +0 -49
- package/dist/src/domain/care-gap.d.ts.map +0 -1
- package/dist/src/domain/care-gap.js +0 -3
- package/dist/src/domain/care-gap.js.map +0 -1
- package/dist/src/domain/cohort.d.ts +0 -90
- package/dist/src/domain/cohort.d.ts.map +0 -1
- package/dist/src/domain/cohort.js +0 -78
- package/dist/src/domain/cohort.js.map +0 -1
- package/dist/src/domain/consolidated/recreate/event-type.d.ts +0 -7
- package/dist/src/domain/consolidated/recreate/event-type.d.ts.map +0 -1
- package/dist/src/domain/consolidated/recreate/event-type.js +0 -11
- package/dist/src/domain/consolidated/recreate/event-type.js.map +0 -1
- package/dist/src/domain/consolidated/recreate/index.d.ts +0 -3
- package/dist/src/domain/consolidated/recreate/index.d.ts.map +0 -1
- package/dist/src/domain/consolidated/recreate/index.js +0 -19
- package/dist/src/domain/consolidated/recreate/index.js.map +0 -1
- package/dist/src/domain/consolidated/recreate/supported-event-types.d.ts +0 -8
- package/dist/src/domain/consolidated/recreate/supported-event-types.d.ts.map +0 -1
- package/dist/src/domain/consolidated/recreate/supported-event-types.js +0 -24
- package/dist/src/domain/consolidated/recreate/supported-event-types.js.map +0 -1
- package/dist/src/domain/contact/__tests__/email.test.d.ts +0 -2
- package/dist/src/domain/contact/__tests__/email.test.d.ts.map +0 -1
- package/dist/src/domain/contact/__tests__/email.test.js +0 -136
- package/dist/src/domain/contact/__tests__/email.test.js.map +0 -1
- package/dist/src/domain/contact/__tests__/phone.test.d.ts +0 -2
- package/dist/src/domain/contact/__tests__/phone.test.d.ts.map +0 -1
- package/dist/src/domain/contact/__tests__/phone.test.js +0 -194
- package/dist/src/domain/contact/__tests__/phone.test.js.map +0 -1
- package/dist/src/domain/contact/email.d.ts +0 -32
- package/dist/src/domain/contact/email.d.ts.map +0 -1
- package/dist/src/domain/contact/email.js +0 -101
- package/dist/src/domain/contact/email.js.map +0 -1
- package/dist/src/domain/contact/phone.d.ts +0 -22
- package/dist/src/domain/contact/phone.d.ts.map +0 -1
- package/dist/src/domain/contact/phone.js +0 -68
- package/dist/src/domain/contact/phone.js.map +0 -1
- package/dist/src/domain/cql-engine/transform.d.ts +0 -32
- package/dist/src/domain/cql-engine/transform.d.ts.map +0 -1
- package/dist/src/domain/cql-engine/transform.js +0 -19
- package/dist/src/domain/cql-engine/transform.js.map +0 -1
- package/dist/src/domain/cursor-utils.d.ts +0 -20
- package/dist/src/domain/cursor-utils.d.ts.map +0 -1
- package/dist/src/domain/cursor-utils.js +0 -50
- package/dist/src/domain/cursor-utils.js.map +0 -1
- package/dist/src/domain/customer.d.ts +0 -123
- package/dist/src/domain/customer.d.ts.map +0 -1
- package/dist/src/domain/customer.js +0 -30
- package/dist/src/domain/customer.js.map +0 -1
- package/dist/src/domain/db.d.ts +0 -71
- package/dist/src/domain/db.d.ts.map +0 -1
- package/dist/src/domain/db.js +0 -45
- package/dist/src/domain/db.js.map +0 -1
- package/dist/src/domain/dob.d.ts +0 -10
- package/dist/src/domain/dob.d.ts.map +0 -1
- package/dist/src/domain/dob.js +0 -26
- package/dist/src/domain/dob.js.map +0 -1
- package/dist/src/domain/externalId.d.ts +0 -2
- package/dist/src/domain/externalId.d.ts.map +0 -1
- package/dist/src/domain/externalId.js +0 -7
- package/dist/src/domain/externalId.js.map +0 -1
- package/dist/src/domain/gender.d.ts +0 -8
- package/dist/src/domain/gender.d.ts.map +0 -1
- package/dist/src/domain/gender.js +0 -33
- package/dist/src/domain/gender.js.map +0 -1
- package/dist/src/domain/job/job-status.d.ts +0 -15
- package/dist/src/domain/job/job-status.d.ts.map +0 -1
- package/dist/src/domain/job/job-status.js +0 -57
- package/dist/src/domain/job/job-status.js.map +0 -1
- package/dist/src/domain/job/patient-job.d.ts +0 -54
- package/dist/src/domain/job/patient-job.d.ts.map +0 -1
- package/dist/src/domain/job/patient-job.js +0 -31
- package/dist/src/domain/job/patient-job.js.map +0 -1
- package/dist/src/domain/job/types.d.ts +0 -19
- package/dist/src/domain/job/types.d.ts.map +0 -1
- package/dist/src/domain/job/types.js +0 -15
- package/dist/src/domain/job/types.js.map +0 -1
- package/dist/src/domain/jwt-token.d.ts +0 -6
- package/dist/src/domain/jwt-token.d.ts.map +0 -1
- package/dist/src/domain/jwt-token.js +0 -3
- package/dist/src/domain/jwt-token.js.map +0 -1
- package/dist/src/domain/metriport.d.ts +0 -9
- package/dist/src/domain/metriport.d.ts.map +0 -1
- package/dist/src/domain/metriport.js +0 -13
- package/dist/src/domain/metriport.js.map +0 -1
- package/dist/src/domain/network-query/__tests__/source.test.d.ts +0 -2
- package/dist/src/domain/network-query/__tests__/source.test.d.ts.map +0 -1
- package/dist/src/domain/network-query/__tests__/source.test.js +0 -450
- package/dist/src/domain/network-query/__tests__/source.test.js.map +0 -1
- package/dist/src/domain/network-query/index.d.ts +0 -4
- package/dist/src/domain/network-query/index.d.ts.map +0 -1
- package/dist/src/domain/network-query/index.js +0 -20
- package/dist/src/domain/network-query/index.js.map +0 -1
- package/dist/src/domain/network-query/query.d.ts +0 -367
- package/dist/src/domain/network-query/query.d.ts.map +0 -1
- package/dist/src/domain/network-query/query.js +0 -23
- package/dist/src/domain/network-query/query.js.map +0 -1
- package/dist/src/domain/network-query/source.d.ts +0 -734
- package/dist/src/domain/network-query/source.d.ts.map +0 -1
- package/dist/src/domain/network-query/source.js +0 -382
- package/dist/src/domain/network-query/source.js.map +0 -1
- package/dist/src/domain/network-query/supported-event-types.d.ts +0 -17
- package/dist/src/domain/network-query/supported-event-types.d.ts.map +0 -1
- package/dist/src/domain/network-query/supported-event-types.js +0 -60
- package/dist/src/domain/network-query/supported-event-types.js.map +0 -1
- package/dist/src/domain/notification-webhooks/index.d.ts +0 -2
- package/dist/src/domain/notification-webhooks/index.d.ts.map +0 -1
- package/dist/src/domain/notification-webhooks/index.js +0 -18
- package/dist/src/domain/notification-webhooks/index.js.map +0 -1
- package/dist/src/domain/notification-webhooks/types.d.ts +0 -33
- package/dist/src/domain/notification-webhooks/types.d.ts.map +0 -1
- package/dist/src/domain/notification-webhooks/types.js +0 -26
- package/dist/src/domain/notification-webhooks/types.js.map +0 -1
- package/dist/src/domain/organization.d.ts +0 -90
- package/dist/src/domain/organization.d.ts.map +0 -1
- package/dist/src/domain/organization.js +0 -41
- package/dist/src/domain/organization.js.map +0 -1
- package/dist/src/domain/pagination-v2.d.ts +0 -230
- package/dist/src/domain/pagination-v2.d.ts.map +0 -1
- package/dist/src/domain/pagination-v2.js +0 -132
- package/dist/src/domain/pagination-v2.js.map +0 -1
- package/dist/src/domain/pagination.d.ts +0 -71
- package/dist/src/domain/pagination.d.ts.map +0 -1
- package/dist/src/domain/pagination.js +0 -36
- package/dist/src/domain/pagination.js.map +0 -1
- package/dist/src/domain/patient/__tests__/ssn.test.d.ts +0 -2
- package/dist/src/domain/patient/__tests__/ssn.test.d.ts.map +0 -1
- package/dist/src/domain/patient/__tests__/ssn.test.js +0 -54
- package/dist/src/domain/patient/__tests__/ssn.test.js.map +0 -1
- package/dist/src/domain/patient/patient-import/__tests__/status.test.d.ts +0 -2
- package/dist/src/domain/patient/patient-import/__tests__/status.test.d.ts.map +0 -1
- package/dist/src/domain/patient/patient-import/__tests__/status.test.js +0 -74
- package/dist/src/domain/patient/patient-import/__tests__/status.test.js.map +0 -1
- package/dist/src/domain/patient/patient-import/__tests__/types.d.ts +0 -4
- package/dist/src/domain/patient/patient-import/__tests__/types.d.ts.map +0 -1
- package/dist/src/domain/patient/patient-import/__tests__/types.js +0 -19
- package/dist/src/domain/patient/patient-import/__tests__/types.js.map +0 -1
- package/dist/src/domain/patient/patient-import/__tests__/types.test.d.ts +0 -2
- package/dist/src/domain/patient/patient-import/__tests__/types.test.d.ts.map +0 -1
- package/dist/src/domain/patient/patient-import/__tests__/types.test.js +0 -69
- package/dist/src/domain/patient/patient-import/__tests__/types.test.js.map +0 -1
- package/dist/src/domain/patient/patient-import/create.d.ts +0 -19
- package/dist/src/domain/patient/patient-import/create.d.ts.map +0 -1
- package/dist/src/domain/patient/patient-import/create.js +0 -49
- package/dist/src/domain/patient/patient-import/create.js.map +0 -1
- package/dist/src/domain/patient/patient-import/mapping.d.ts +0 -20
- package/dist/src/domain/patient/patient-import/mapping.d.ts.map +0 -1
- package/dist/src/domain/patient/patient-import/mapping.js +0 -3
- package/dist/src/domain/patient/patient-import/mapping.js.map +0 -1
- package/dist/src/domain/patient/patient-import/metadata.d.ts +0 -9
- package/dist/src/domain/patient/patient-import/metadata.d.ts.map +0 -1
- package/dist/src/domain/patient/patient-import/metadata.js +0 -21
- package/dist/src/domain/patient/patient-import/metadata.js.map +0 -1
- package/dist/src/domain/patient/patient-import/schemas.d.ts +0 -46
- package/dist/src/domain/patient/patient-import/schemas.d.ts.map +0 -1
- package/dist/src/domain/patient/patient-import/schemas.js +0 -49
- package/dist/src/domain/patient/patient-import/schemas.js.map +0 -1
- package/dist/src/domain/patient/patient-import/status.d.ts +0 -15
- package/dist/src/domain/patient/patient-import/status.d.ts.map +0 -1
- package/dist/src/domain/patient/patient-import/status.js +0 -48
- package/dist/src/domain/patient/patient-import/status.js.map +0 -1
- package/dist/src/domain/patient/patient-import/types.d.ts +0 -43
- package/dist/src/domain/patient/patient-import/types.d.ts.map +0 -1
- package/dist/src/domain/patient/patient-import/types.js +0 -15
- package/dist/src/domain/patient/patient-import/types.js.map +0 -1
- package/dist/src/domain/patient/patient-monitoring/__tests__/utils.test.d.ts +0 -2
- package/dist/src/domain/patient/patient-monitoring/__tests__/utils.test.d.ts.map +0 -1
- package/dist/src/domain/patient/patient-monitoring/__tests__/utils.test.js +0 -66
- package/dist/src/domain/patient/patient-monitoring/__tests__/utils.test.js.map +0 -1
- package/dist/src/domain/patient/patient-monitoring/discharge-requery.d.ts +0 -364
- package/dist/src/domain/patient/patient-monitoring/discharge-requery.d.ts.map +0 -1
- package/dist/src/domain/patient/patient-monitoring/discharge-requery.js +0 -55
- package/dist/src/domain/patient/patient-monitoring/discharge-requery.js.map +0 -1
- package/dist/src/domain/patient/patient-monitoring/utils.d.ts +0 -59
- package/dist/src/domain/patient/patient-monitoring/utils.d.ts.map +0 -1
- package/dist/src/domain/patient/patient-monitoring/utils.js +0 -120
- package/dist/src/domain/patient/patient-monitoring/utils.js.map +0 -1
- package/dist/src/domain/patient/patient-settings.d.ts +0 -121
- package/dist/src/domain/patient/patient-settings.d.ts.map +0 -1
- package/dist/src/domain/patient/patient-settings.js +0 -27
- package/dist/src/domain/patient/patient-settings.js.map +0 -1
- package/dist/src/domain/patient/patient.d.ts +0 -23
- package/dist/src/domain/patient/patient.d.ts.map +0 -1
- package/dist/src/domain/patient/patient.js +0 -14
- package/dist/src/domain/patient/patient.js.map +0 -1
- package/dist/src/domain/patient/ssn.d.ts +0 -3
- package/dist/src/domain/patient/ssn.d.ts.map +0 -1
- package/dist/src/domain/patient/ssn.js +0 -28
- package/dist/src/domain/patient/ssn.js.map +0 -1
- package/dist/src/domain/patient-cohort.d.ts +0 -6
- package/dist/src/domain/patient-cohort.d.ts.map +0 -1
- package/dist/src/domain/patient-cohort.js +0 -3
- package/dist/src/domain/patient-cohort.js.map +0 -1
- package/dist/src/domain/patient-or-all.d.ts +0 -34
- package/dist/src/domain/patient-or-all.d.ts.map +0 -1
- package/dist/src/domain/patient-or-all.js +0 -17
- package/dist/src/domain/patient-or-all.js.map +0 -1
- package/dist/src/domain/patient.d.ts +0 -90
- package/dist/src/domain/patient.d.ts.map +0 -1
- package/dist/src/domain/patient.js +0 -32
- package/dist/src/domain/patient.js.map +0 -1
- package/dist/src/domain/rate-limiting/index.d.ts +0 -34
- package/dist/src/domain/rate-limiting/index.d.ts.map +0 -1
- package/dist/src/domain/rate-limiting/index.js +0 -55
- package/dist/src/domain/rate-limiting/index.js.map +0 -1
- package/dist/src/domain/roster/patient-roster-added-by.d.ts +0 -6
- package/dist/src/domain/roster/patient-roster-added-by.d.ts.map +0 -1
- package/dist/src/domain/roster/patient-roster-added-by.js +0 -19
- package/dist/src/domain/roster/patient-roster-added-by.js.map +0 -1
- package/dist/src/domain/roster/patient-roster.d.ts +0 -24
- package/dist/src/domain/roster/patient-roster.d.ts.map +0 -1
- package/dist/src/domain/roster/patient-roster.js +0 -3
- package/dist/src/domain/roster/patient-roster.js.map +0 -1
- package/dist/src/domain/roster/roster-status.d.ts +0 -16
- package/dist/src/domain/roster/roster-status.d.ts.map +0 -1
- package/dist/src/domain/roster/roster-status.js +0 -49
- package/dist/src/domain/roster/roster-status.js.map +0 -1
- package/dist/src/domain/roster/roster.d.ts +0 -39
- package/dist/src/domain/roster/roster.d.ts.map +0 -1
- package/dist/src/domain/roster/roster.js +0 -3
- package/dist/src/domain/roster/roster.js.map +0 -1
- package/dist/src/domain/secrets.d.ts +0 -4
- package/dist/src/domain/secrets.d.ts.map +0 -1
- package/dist/src/domain/secrets.js +0 -7
- package/dist/src/domain/secrets.js.map +0 -1
- package/dist/src/domain/suspect.d.ts +0 -5
- package/dist/src/domain/suspect.d.ts.map +0 -1
- package/dist/src/domain/suspect.js +0 -3
- package/dist/src/domain/suspect.js.map +0 -1
- package/dist/src/domain/tcm-encounter.d.ts +0 -453
- package/dist/src/domain/tcm-encounter.d.ts.map +0 -1
- package/dist/src/domain/tcm-encounter.js +0 -98
- package/dist/src/domain/tcm-encounter.js.map +0 -1
- package/dist/src/error/__tests__/shared.test.d.ts +0 -2
- package/dist/src/error/__tests__/shared.test.d.ts.map +0 -1
- package/dist/src/error/__tests__/shared.test.js +0 -539
- package/dist/src/error/__tests__/shared.test.js.map +0 -1
- package/dist/src/error/bad-request.d.ts.map +0 -1
- package/dist/src/error/bad-request.js +0 -18
- package/dist/src/error/bad-request.js.map +0 -1
- package/dist/src/error/metriport-error.d.ts +0 -9
- package/dist/src/error/metriport-error.d.ts.map +0 -1
- package/dist/src/error/metriport-error.js +0 -22
- package/dist/src/error/metriport-error.js.map +0 -1
- package/dist/src/error/not-found.d.ts +0 -5
- package/dist/src/error/not-found.d.ts.map +0 -1
- package/dist/src/error/not-found.js +0 -18
- package/dist/src/error/not-found.js.map +0 -1
- package/dist/src/error/shared.d.ts +0 -10
- package/dist/src/error/shared.d.ts.map +0 -1
- package/dist/src/error/shared.js +0 -79
- package/dist/src/error/shared.js.map +0 -1
- package/dist/src/error/too-many-requests.d.ts +0 -5
- package/dist/src/error/too-many-requests.d.ts.map +0 -1
- package/dist/src/error/too-many-requests.js +0 -18
- package/dist/src/error/too-many-requests.js.map +0 -1
- package/dist/src/external/ehr/practicefusion/allergy-data-map.d.ts +0 -34
- package/dist/src/external/ehr/practicefusion/allergy-data-map.d.ts.map +0 -1
- package/dist/src/external/ehr/practicefusion/allergy-data-map.js +0 -2612
- package/dist/src/external/ehr/practicefusion/allergy-data-map.js.map +0 -1
- package/dist/src/external/ehr/practicefusion/index.d.ts +0 -3
- package/dist/src/external/ehr/practicefusion/index.d.ts.map +0 -1
- package/dist/src/external/ehr/practicefusion/index.js +0 -19
- package/dist/src/external/ehr/practicefusion/index.js.map +0 -1
- package/dist/src/external/ehr/practicefusion/shared.d.ts +0 -18
- package/dist/src/external/ehr/practicefusion/shared.d.ts.map +0 -1
- package/dist/src/external/ehr/practicefusion/shared.js +0 -65
- package/dist/src/external/ehr/practicefusion/shared.js.map +0 -1
- package/dist/src/external/hl7v2/constants.d.ts +0 -39
- package/dist/src/external/hl7v2/constants.d.ts.map +0 -1
- package/dist/src/external/hl7v2/constants.js +0 -56
- package/dist/src/external/hl7v2/constants.js.map +0 -1
- package/dist/src/external/ihe/constants.d.ts +0 -17
- package/dist/src/external/ihe/constants.d.ts.map +0 -1
- package/dist/src/external/ihe/constants.js +0 -72
- package/dist/src/external/ihe/constants.js.map +0 -1
- package/dist/src/external/ihe/index.d.ts +0 -3
- package/dist/src/external/ihe/index.d.ts.map +0 -1
- package/dist/src/external/ihe/index.js +0 -19
- package/dist/src/external/ihe/index.js.map +0 -1
- package/dist/src/external/ihe/shared.d.ts +0 -8
- package/dist/src/external/ihe/shared.d.ts.map +0 -1
- package/dist/src/external/ihe/shared.js +0 -24
- package/dist/src/external/ihe/shared.js.map +0 -1
- package/dist/src/external/index.d.ts +0 -4
- package/dist/src/external/index.d.ts.map +0 -1
- package/dist/src/external/index.js +0 -20
- package/dist/src/external/index.js.map +0 -1
- package/dist/src/external/zod/__tests__/iso-date.test.d.ts +0 -2
- package/dist/src/external/zod/__tests__/iso-date.test.d.ts.map +0 -1
- package/dist/src/external/zod/__tests__/iso-date.test.js +0 -115
- package/dist/src/external/zod/__tests__/iso-date.test.js.map +0 -1
- package/dist/src/external/zod/date.d.ts +0 -12
- package/dist/src/external/zod/date.d.ts.map +0 -1
- package/dist/src/external/zod/date.js +0 -28
- package/dist/src/external/zod/date.js.map +0 -1
- package/dist/src/external/zod/index.d.ts +0 -5
- package/dist/src/external/zod/index.d.ts.map +0 -1
- package/dist/src/external/zod/index.js +0 -21
- package/dist/src/external/zod/index.js.map +0 -1
- package/dist/src/external/zod/string.d.ts +0 -11
- package/dist/src/external/zod/string.d.ts.map +0 -1
- package/dist/src/external/zod/string.js +0 -27
- package/dist/src/external/zod/string.js.map +0 -1
- package/dist/src/external/zod/us-state.d.ts +0 -3
- package/dist/src/external/zod/us-state.d.ts.map +0 -1
- package/dist/src/external/zod/us-state.js +0 -10
- package/dist/src/external/zod/us-state.js.map +0 -1
- package/dist/src/external/zod/zip.d.ts +0 -3
- package/dist/src/external/zod/zip.d.ts.map +0 -1
- package/dist/src/external/zod/zip.js +0 -13
- package/dist/src/external/zod/zip.js.map +0 -1
- package/dist/src/index.d.ts +0 -63
- package/dist/src/index.d.ts.map +0 -1
- package/dist/src/index.js +0 -123
- package/dist/src/index.js.map +0 -1
- package/dist/src/interface/external/carequality/directory/simplified-org.d.ts +0 -10
- package/dist/src/interface/external/carequality/directory/simplified-org.d.ts.map +0 -1
- package/dist/src/interface/external/carequality/directory/simplified-org.js +0 -3
- package/dist/src/interface/external/carequality/directory/simplified-org.js.map +0 -1
- package/dist/src/interface/external/ehr/athenahealth/allergy.d.ts +0 -206
- package/dist/src/interface/external/ehr/athenahealth/allergy.d.ts.map +0 -1
- package/dist/src/interface/external/ehr/athenahealth/allergy.js +0 -44
- package/dist/src/interface/external/ehr/athenahealth/allergy.js.map +0 -1
- package/dist/src/interface/external/ehr/athenahealth/appointment.d.ts +0 -129
- package/dist/src/interface/external/ehr/athenahealth/appointment.d.ts.map +0 -1
- package/dist/src/interface/external/ehr/athenahealth/appointment.js +0 -30
- package/dist/src/interface/external/ehr/athenahealth/appointment.js.map +0 -1
- package/dist/src/interface/external/ehr/athenahealth/clinical-document.d.ts +0 -27
- package/dist/src/interface/external/ehr/athenahealth/clinical-document.d.ts.map +0 -1
- package/dist/src/interface/external/ehr/athenahealth/clinical-document.js +0 -14
- package/dist/src/interface/external/ehr/athenahealth/clinical-document.js.map +0 -1
- package/dist/src/interface/external/ehr/athenahealth/cx-mapping.d.ts +0 -484
- package/dist/src/interface/external/ehr/athenahealth/cx-mapping.d.ts.map +0 -1
- package/dist/src/interface/external/ehr/athenahealth/cx-mapping.js +0 -17
- package/dist/src/interface/external/ehr/athenahealth/cx-mapping.js.map +0 -1
- package/dist/src/interface/external/ehr/athenahealth/department.d.ts +0 -28
- package/dist/src/interface/external/ehr/athenahealth/department.d.ts.map +0 -1
- package/dist/src/interface/external/ehr/athenahealth/department.js +0 -11
- package/dist/src/interface/external/ehr/athenahealth/department.js.map +0 -1
- package/dist/src/interface/external/ehr/athenahealth/encounter.d.ts +0 -33
- package/dist/src/interface/external/ehr/athenahealth/encounter.d.ts.map +0 -1
- package/dist/src/interface/external/ehr/athenahealth/encounter.js +0 -13
- package/dist/src/interface/external/ehr/athenahealth/encounter.js.map +0 -1
- package/dist/src/interface/external/ehr/athenahealth/family-history.d.ts +0 -305
- package/dist/src/interface/external/ehr/athenahealth/family-history.d.ts.map +0 -1
- package/dist/src/interface/external/ehr/athenahealth/family-history.js +0 -44
- package/dist/src/interface/external/ehr/athenahealth/family-history.js.map +0 -1
- package/dist/src/interface/external/ehr/athenahealth/index.d.ts +0 -17
- package/dist/src/interface/external/ehr/athenahealth/index.d.ts.map +0 -1
- package/dist/src/interface/external/ehr/athenahealth/index.js +0 -33
- package/dist/src/interface/external/ehr/athenahealth/index.js.map +0 -1
- package/dist/src/interface/external/ehr/athenahealth/jwt-token.d.ts +0 -46
- package/dist/src/interface/external/ehr/athenahealth/jwt-token.d.ts.map +0 -1
- package/dist/src/interface/external/ehr/athenahealth/jwt-token.js +0 -26
- package/dist/src/interface/external/ehr/athenahealth/jwt-token.js.map +0 -1
- package/dist/src/interface/external/ehr/athenahealth/lab-result.d.ts +0 -27
- package/dist/src/interface/external/ehr/athenahealth/lab-result.d.ts.map +0 -1
- package/dist/src/interface/external/ehr/athenahealth/lab-result.js +0 -14
- package/dist/src/interface/external/ehr/athenahealth/lab-result.js.map +0 -1
- package/dist/src/interface/external/ehr/athenahealth/medication.d.ts +0 -63
- package/dist/src/interface/external/ehr/athenahealth/medication.d.ts.map +0 -1
- package/dist/src/interface/external/ehr/athenahealth/medication.js +0 -19
- package/dist/src/interface/external/ehr/athenahealth/medication.js.map +0 -1
- package/dist/src/interface/external/ehr/athenahealth/patient-mapping.d.ts +0 -14
- package/dist/src/interface/external/ehr/athenahealth/patient-mapping.d.ts.map +0 -1
- package/dist/src/interface/external/ehr/athenahealth/patient-mapping.js +0 -11
- package/dist/src/interface/external/ehr/athenahealth/patient-mapping.js.map +0 -1
- package/dist/src/interface/external/ehr/athenahealth/patient.d.ts +0 -78
- package/dist/src/interface/external/ehr/athenahealth/patient.d.ts.map +0 -1
- package/dist/src/interface/external/ehr/athenahealth/patient.js +0 -15
- package/dist/src/interface/external/ehr/athenahealth/patient.js.map +0 -1
- package/dist/src/interface/external/ehr/athenahealth/problem.d.ts +0 -27
- package/dist/src/interface/external/ehr/athenahealth/problem.d.ts.map +0 -1
- package/dist/src/interface/external/ehr/athenahealth/problem.js +0 -14
- package/dist/src/interface/external/ehr/athenahealth/problem.js.map +0 -1
- package/dist/src/interface/external/ehr/athenahealth/subscription.d.ts +0 -20
- package/dist/src/interface/external/ehr/athenahealth/subscription.d.ts.map +0 -1
- package/dist/src/interface/external/ehr/athenahealth/subscription.js +0 -11
- package/dist/src/interface/external/ehr/athenahealth/subscription.js.map +0 -1
- package/dist/src/interface/external/ehr/athenahealth/surgical-history.d.ts +0 -27
- package/dist/src/interface/external/ehr/athenahealth/surgical-history.d.ts.map +0 -1
- package/dist/src/interface/external/ehr/athenahealth/surgical-history.js +0 -14
- package/dist/src/interface/external/ehr/athenahealth/surgical-history.js.map +0 -1
- package/dist/src/interface/external/ehr/athenahealth/vaccine.d.ts +0 -18
- package/dist/src/interface/external/ehr/athenahealth/vaccine.d.ts.map +0 -1
- package/dist/src/interface/external/ehr/athenahealth/vaccine.js +0 -11
- package/dist/src/interface/external/ehr/athenahealth/vaccine.js.map +0 -1
- package/dist/src/interface/external/ehr/athenahealth/vitals.d.ts +0 -67
- package/dist/src/interface/external/ehr/athenahealth/vitals.d.ts.map +0 -1
- package/dist/src/interface/external/ehr/athenahealth/vitals.js +0 -15
- package/dist/src/interface/external/ehr/athenahealth/vitals.js.map +0 -1
- package/dist/src/interface/external/ehr/canvas/allergen.d.ts +0 -13
- package/dist/src/interface/external/ehr/canvas/allergen.d.ts.map +0 -1
- package/dist/src/interface/external/ehr/canvas/allergen.js +0 -9
- package/dist/src/interface/external/ehr/canvas/allergen.js.map +0 -1
- package/dist/src/interface/external/ehr/canvas/appointment.d.ts +0 -170
- package/dist/src/interface/external/ehr/canvas/appointment.d.ts.map +0 -1
- package/dist/src/interface/external/ehr/canvas/appointment.js +0 -24
- package/dist/src/interface/external/ehr/canvas/appointment.js.map +0 -1
- package/dist/src/interface/external/ehr/canvas/cx-mapping.d.ts +0 -469
- package/dist/src/interface/external/ehr/canvas/cx-mapping.d.ts.map +0 -1
- package/dist/src/interface/external/ehr/canvas/cx-mapping.js +0 -12
- package/dist/src/interface/external/ehr/canvas/cx-mapping.js.map +0 -1
- package/dist/src/interface/external/ehr/canvas/external-event.d.ts +0 -67
- package/dist/src/interface/external/ehr/canvas/external-event.d.ts.map +0 -1
- package/dist/src/interface/external/ehr/canvas/external-event.js +0 -48
- package/dist/src/interface/external/ehr/canvas/external-event.js.map +0 -1
- package/dist/src/interface/external/ehr/canvas/index.d.ts +0 -7
- package/dist/src/interface/external/ehr/canvas/index.d.ts.map +0 -1
- package/dist/src/interface/external/ehr/canvas/index.js +0 -23
- package/dist/src/interface/external/ehr/canvas/index.js.map +0 -1
- package/dist/src/interface/external/ehr/canvas/jwt-token.d.ts +0 -73
- package/dist/src/interface/external/ehr/canvas/jwt-token.d.ts.map +0 -1
- package/dist/src/interface/external/ehr/canvas/jwt-token.js +0 -37
- package/dist/src/interface/external/ehr/canvas/jwt-token.js.map +0 -1
- package/dist/src/interface/external/ehr/canvas/note.d.ts +0 -119
- package/dist/src/interface/external/ehr/canvas/note.d.ts.map +0 -1
- package/dist/src/interface/external/ehr/canvas/note.js +0 -26
- package/dist/src/interface/external/ehr/canvas/note.js.map +0 -1
- package/dist/src/interface/external/ehr/eclinicalworks/cx-mapping.d.ts +0 -465
- package/dist/src/interface/external/ehr/eclinicalworks/cx-mapping.d.ts.map +0 -1
- package/dist/src/interface/external/ehr/eclinicalworks/cx-mapping.js +0 -10
- package/dist/src/interface/external/ehr/eclinicalworks/cx-mapping.js.map +0 -1
- package/dist/src/interface/external/ehr/eclinicalworks/index.d.ts +0 -2
- package/dist/src/interface/external/ehr/eclinicalworks/index.d.ts.map +0 -1
- package/dist/src/interface/external/ehr/eclinicalworks/index.js +0 -18
- package/dist/src/interface/external/ehr/eclinicalworks/index.js.map +0 -1
- package/dist/src/interface/external/ehr/eclinicalworks/jwt-token.d.ts +0 -18
- package/dist/src/interface/external/ehr/eclinicalworks/jwt-token.d.ts.map +0 -1
- package/dist/src/interface/external/ehr/eclinicalworks/jwt-token.js +0 -15
- package/dist/src/interface/external/ehr/eclinicalworks/jwt-token.js.map +0 -1
- package/dist/src/interface/external/ehr/elation/appointment.d.ts +0 -71
- package/dist/src/interface/external/ehr/elation/appointment.d.ts.map +0 -1
- package/dist/src/interface/external/ehr/elation/appointment.js +0 -16
- package/dist/src/interface/external/ehr/elation/appointment.js.map +0 -1
- package/dist/src/interface/external/ehr/elation/ccda.d.ts +0 -13
- package/dist/src/interface/external/ehr/elation/ccda.d.ts.map +0 -1
- package/dist/src/interface/external/ehr/elation/ccda.js +0 -9
- package/dist/src/interface/external/ehr/elation/ccda.js.map +0 -1
- package/dist/src/interface/external/ehr/elation/cx-mapping.d.ts +0 -508
- package/dist/src/interface/external/ehr/elation/cx-mapping.d.ts.map +0 -1
- package/dist/src/interface/external/ehr/elation/cx-mapping.js +0 -25
- package/dist/src/interface/external/ehr/elation/cx-mapping.js.map +0 -1
- package/dist/src/interface/external/ehr/elation/event.d.ts +0 -106
- package/dist/src/interface/external/ehr/elation/event.d.ts.map +0 -1
- package/dist/src/interface/external/ehr/elation/event.js +0 -31
- package/dist/src/interface/external/ehr/elation/event.js.map +0 -1
- package/dist/src/interface/external/ehr/elation/index.d.ts +0 -13
- package/dist/src/interface/external/ehr/elation/index.d.ts.map +0 -1
- package/dist/src/interface/external/ehr/elation/index.js +0 -29
- package/dist/src/interface/external/ehr/elation/index.js.map +0 -1
- package/dist/src/interface/external/ehr/elation/jwt-token.d.ts +0 -46
- package/dist/src/interface/external/ehr/elation/jwt-token.d.ts.map +0 -1
- package/dist/src/interface/external/ehr/elation/jwt-token.js +0 -26
- package/dist/src/interface/external/ehr/elation/jwt-token.js.map +0 -1
- package/dist/src/interface/external/ehr/elation/lab.d.ts +0 -10
- package/dist/src/interface/external/ehr/elation/lab.d.ts.map +0 -1
- package/dist/src/interface/external/ehr/elation/lab.js +0 -8
- package/dist/src/interface/external/ehr/elation/lab.js.map +0 -1
- package/dist/src/interface/external/ehr/elation/note.d.ts +0 -10
- package/dist/src/interface/external/ehr/elation/note.d.ts.map +0 -1
- package/dist/src/interface/external/ehr/elation/note.js +0 -8
- package/dist/src/interface/external/ehr/elation/note.js.map +0 -1
- package/dist/src/interface/external/ehr/elation/patient.d.ts +0 -96
- package/dist/src/interface/external/ehr/elation/patient.d.ts.map +0 -1
- package/dist/src/interface/external/ehr/elation/patient.js +0 -33
- package/dist/src/interface/external/ehr/elation/patient.js.map +0 -1
- package/dist/src/interface/external/ehr/elation/practice.d.ts +0 -44
- package/dist/src/interface/external/ehr/elation/practice.d.ts.map +0 -1
- package/dist/src/interface/external/ehr/elation/practice.js +0 -13
- package/dist/src/interface/external/ehr/elation/practice.js.map +0 -1
- package/dist/src/interface/external/ehr/elation/problem.d.ts +0 -10
- package/dist/src/interface/external/ehr/elation/problem.d.ts.map +0 -1
- package/dist/src/interface/external/ehr/elation/problem.js +0 -8
- package/dist/src/interface/external/ehr/elation/problem.js.map +0 -1
- package/dist/src/interface/external/ehr/elation/subscription.d.ts +0 -53
- package/dist/src/interface/external/ehr/elation/subscription.d.ts.map +0 -1
- package/dist/src/interface/external/ehr/elation/subscription.js +0 -22
- package/dist/src/interface/external/ehr/elation/subscription.js.map +0 -1
- package/dist/src/interface/external/ehr/elation/vtial.d.ts +0 -10
- package/dist/src/interface/external/ehr/elation/vtial.d.ts.map +0 -1
- package/dist/src/interface/external/ehr/elation/vtial.js +0 -8
- package/dist/src/interface/external/ehr/elation/vtial.js.map +0 -1
- package/dist/src/interface/external/ehr/embed/cx-mapping.d.ts +0 -4
- package/dist/src/interface/external/ehr/embed/cx-mapping.d.ts.map +0 -1
- package/dist/src/interface/external/ehr/embed/cx-mapping.js +0 -6
- package/dist/src/interface/external/ehr/embed/cx-mapping.js.map +0 -1
- package/dist/src/interface/external/ehr/embed/index.d.ts +0 -3
- package/dist/src/interface/external/ehr/embed/index.d.ts.map +0 -1
- package/dist/src/interface/external/ehr/embed/index.js +0 -19
- package/dist/src/interface/external/ehr/embed/index.js.map +0 -1
- package/dist/src/interface/external/ehr/embed/jwt-token.d.ts +0 -28
- package/dist/src/interface/external/ehr/embed/jwt-token.d.ts.map +0 -1
- package/dist/src/interface/external/ehr/embed/jwt-token.js +0 -23
- package/dist/src/interface/external/ehr/embed/jwt-token.js.map +0 -1
- package/dist/src/interface/external/ehr/fhir-resource.d.ts +0 -269
- package/dist/src/interface/external/ehr/fhir-resource.d.ts.map +0 -1
- package/dist/src/interface/external/ehr/fhir-resource.js +0 -62
- package/dist/src/interface/external/ehr/fhir-resource.js.map +0 -1
- package/dist/src/interface/external/ehr/healthie/allergy.d.ts +0 -249
- package/dist/src/interface/external/ehr/healthie/allergy.d.ts.map +0 -1
- package/dist/src/interface/external/ehr/healthie/allergy.js +0 -31
- package/dist/src/interface/external/ehr/healthie/allergy.js.map +0 -1
- package/dist/src/interface/external/ehr/healthie/appointment.d.ts +0 -221
- package/dist/src/interface/external/ehr/healthie/appointment.d.ts.map +0 -1
- package/dist/src/interface/external/ehr/healthie/appointment.js +0 -21
- package/dist/src/interface/external/ehr/healthie/appointment.js.map +0 -1
- package/dist/src/interface/external/ehr/healthie/condition.d.ts +0 -287
- package/dist/src/interface/external/ehr/healthie/condition.d.ts.map +0 -1
- package/dist/src/interface/external/ehr/healthie/condition.js +0 -40
- package/dist/src/interface/external/ehr/healthie/condition.js.map +0 -1
- package/dist/src/interface/external/ehr/healthie/cx-mapping.d.ts +0 -931
- package/dist/src/interface/external/ehr/healthie/cx-mapping.d.ts.map +0 -1
- package/dist/src/interface/external/ehr/healthie/cx-mapping.js +0 -42
- package/dist/src/interface/external/ehr/healthie/cx-mapping.js.map +0 -1
- package/dist/src/interface/external/ehr/healthie/event.d.ts +0 -44
- package/dist/src/interface/external/ehr/healthie/event.d.ts.map +0 -1
- package/dist/src/interface/external/ehr/healthie/event.js +0 -20
- package/dist/src/interface/external/ehr/healthie/event.js.map +0 -1
- package/dist/src/interface/external/ehr/healthie/form-answer-group.d.ts +0 -605
- package/dist/src/interface/external/ehr/healthie/form-answer-group.d.ts.map +0 -1
- package/dist/src/interface/external/ehr/healthie/form-answer-group.js +0 -49
- package/dist/src/interface/external/ehr/healthie/form-answer-group.js.map +0 -1
- package/dist/src/interface/external/ehr/healthie/immunization.d.ts +0 -108
- package/dist/src/interface/external/ehr/healthie/immunization.d.ts.map +0 -1
- package/dist/src/interface/external/ehr/healthie/immunization.js +0 -19
- package/dist/src/interface/external/ehr/healthie/immunization.js.map +0 -1
- package/dist/src/interface/external/ehr/healthie/index.d.ts +0 -13
- package/dist/src/interface/external/ehr/healthie/index.d.ts.map +0 -1
- package/dist/src/interface/external/ehr/healthie/index.js +0 -29
- package/dist/src/interface/external/ehr/healthie/index.js.map +0 -1
- package/dist/src/interface/external/ehr/healthie/jwt-token.d.ts +0 -18
- package/dist/src/interface/external/ehr/healthie/jwt-token.d.ts.map +0 -1
- package/dist/src/interface/external/ehr/healthie/jwt-token.js +0 -15
- package/dist/src/interface/external/ehr/healthie/jwt-token.js.map +0 -1
- package/dist/src/interface/external/ehr/healthie/lab.d.ts +0 -492
- package/dist/src/interface/external/ehr/healthie/lab.d.ts.map +0 -1
- package/dist/src/interface/external/ehr/healthie/lab.js +0 -33
- package/dist/src/interface/external/ehr/healthie/lab.js.map +0 -1
- package/dist/src/interface/external/ehr/healthie/medication.d.ts +0 -212
- package/dist/src/interface/external/ehr/healthie/medication.d.ts.map +0 -1
- package/dist/src/interface/external/ehr/healthie/medication.js +0 -36
- package/dist/src/interface/external/ehr/healthie/medication.js.map +0 -1
- package/dist/src/interface/external/ehr/healthie/patient.d.ts +0 -319
- package/dist/src/interface/external/ehr/healthie/patient.d.ts.map +0 -1
- package/dist/src/interface/external/ehr/healthie/patient.js +0 -44
- package/dist/src/interface/external/ehr/healthie/patient.js.map +0 -1
- package/dist/src/interface/external/ehr/healthie/subscription.d.ts +0 -326
- package/dist/src/interface/external/ehr/healthie/subscription.d.ts.map +0 -1
- package/dist/src/interface/external/ehr/healthie/subscription.js +0 -54
- package/dist/src/interface/external/ehr/healthie/subscription.js.map +0 -1
- package/dist/src/interface/external/ehr/index.d.ts +0 -5
- package/dist/src/interface/external/ehr/index.d.ts.map +0 -1
- package/dist/src/interface/external/ehr/index.js +0 -21
- package/dist/src/interface/external/ehr/index.js.map +0 -1
- package/dist/src/interface/external/ehr/patient.d.ts +0 -250
- package/dist/src/interface/external/ehr/patient.d.ts.map +0 -1
- package/dist/src/interface/external/ehr/patient.js +0 -35
- package/dist/src/interface/external/ehr/patient.js.map +0 -1
- package/dist/src/interface/external/ehr/practicefusion/appointment.d.ts +0 -137
- package/dist/src/interface/external/ehr/practicefusion/appointment.d.ts.map +0 -1
- package/dist/src/interface/external/ehr/practicefusion/appointment.js +0 -29
- package/dist/src/interface/external/ehr/practicefusion/appointment.js.map +0 -1
- package/dist/src/interface/external/ehr/practicefusion/cx-mapping.d.ts +0 -472
- package/dist/src/interface/external/ehr/practicefusion/cx-mapping.d.ts.map +0 -1
- package/dist/src/interface/external/ehr/practicefusion/cx-mapping.js +0 -13
- package/dist/src/interface/external/ehr/practicefusion/cx-mapping.js.map +0 -1
- package/dist/src/interface/external/ehr/practicefusion/index.d.ts +0 -4
- package/dist/src/interface/external/ehr/practicefusion/index.d.ts.map +0 -1
- package/dist/src/interface/external/ehr/practicefusion/index.js +0 -20
- package/dist/src/interface/external/ehr/practicefusion/index.js.map +0 -1
- package/dist/src/interface/external/ehr/practicefusion/jwt-token.d.ts +0 -33
- package/dist/src/interface/external/ehr/practicefusion/jwt-token.d.ts.map +0 -1
- package/dist/src/interface/external/ehr/practicefusion/jwt-token.js +0 -22
- package/dist/src/interface/external/ehr/practicefusion/jwt-token.js.map +0 -1
- package/dist/src/interface/external/ehr/practicefusion/patient.d.ts +0 -2
- package/dist/src/interface/external/ehr/practicefusion/patient.d.ts.map +0 -1
- package/dist/src/interface/external/ehr/practicefusion/patient.js +0 -6
- package/dist/src/interface/external/ehr/practicefusion/patient.js.map +0 -1
- package/dist/src/interface/external/ehr/practicefusion/refresh-token.d.ts +0 -19
- package/dist/src/interface/external/ehr/practicefusion/refresh-token.d.ts.map +0 -1
- package/dist/src/interface/external/ehr/practicefusion/refresh-token.js +0 -11
- package/dist/src/interface/external/ehr/practicefusion/refresh-token.js.map +0 -1
- package/dist/src/interface/external/ehr/practitioner.d.ts +0 -49
- package/dist/src/interface/external/ehr/practitioner.d.ts.map +0 -1
- package/dist/src/interface/external/ehr/practitioner.js +0 -20
- package/dist/src/interface/external/ehr/practitioner.js.map +0 -1
- package/dist/src/interface/external/ehr/salesforce/cx-mapping.d.ts +0 -465
- package/dist/src/interface/external/ehr/salesforce/cx-mapping.d.ts.map +0 -1
- package/dist/src/interface/external/ehr/salesforce/cx-mapping.js +0 -10
- package/dist/src/interface/external/ehr/salesforce/cx-mapping.js.map +0 -1
- package/dist/src/interface/external/ehr/salesforce/index.d.ts +0 -2
- package/dist/src/interface/external/ehr/salesforce/index.d.ts.map +0 -1
- package/dist/src/interface/external/ehr/salesforce/index.js +0 -18
- package/dist/src/interface/external/ehr/salesforce/index.js.map +0 -1
- package/dist/src/interface/external/ehr/salesforce/jwt-token.d.ts +0 -21
- package/dist/src/interface/external/ehr/salesforce/jwt-token.d.ts.map +0 -1
- package/dist/src/interface/external/ehr/salesforce/jwt-token.js +0 -16
- package/dist/src/interface/external/ehr/salesforce/jwt-token.js.map +0 -1
- package/dist/src/interface/external/ehr/salesforce/patient.d.ts +0 -326
- package/dist/src/interface/external/ehr/salesforce/patient.d.ts.map +0 -1
- package/dist/src/interface/external/ehr/salesforce/patient.js +0 -69
- package/dist/src/interface/external/ehr/salesforce/patient.js.map +0 -1
- package/dist/src/interface/external/ehr/shared.d.ts +0 -1845
- package/dist/src/interface/external/ehr/shared.d.ts.map +0 -1
- package/dist/src/interface/external/ehr/shared.js +0 -133
- package/dist/src/interface/external/ehr/shared.js.map +0 -1
- package/dist/src/interface/external/ehr/source.d.ts +0 -27
- package/dist/src/interface/external/ehr/source.d.ts.map +0 -1
- package/dist/src/interface/external/ehr/source.js +0 -55
- package/dist/src/interface/external/ehr/source.js.map +0 -1
- package/dist/src/interface/external/index.d.ts +0 -3
- package/dist/src/interface/external/index.d.ts.map +0 -1
- package/dist/src/interface/external/index.js +0 -19
- package/dist/src/interface/external/index.js.map +0 -1
- package/dist/src/interface/external/quest/roster.d.ts +0 -21
- package/dist/src/interface/external/quest/roster.d.ts.map +0 -1
- package/dist/src/interface/external/quest/roster.js +0 -39
- package/dist/src/interface/external/quest/roster.js.map +0 -1
- package/dist/src/interface/external/quest/source.d.ts +0 -11
- package/dist/src/interface/external/quest/source.d.ts.map +0 -1
- package/dist/src/interface/external/quest/source.js +0 -10
- package/dist/src/interface/external/quest/source.js.map +0 -1
- package/dist/src/interface/external/surescripts/added-by.d.ts +0 -8
- package/dist/src/interface/external/surescripts/added-by.d.ts.map +0 -1
- package/dist/src/interface/external/surescripts/added-by.js +0 -23
- package/dist/src/interface/external/surescripts/added-by.js.map +0 -1
- package/dist/src/interface/external/surescripts/code-list-qualifier.d.ts +0 -6
- package/dist/src/interface/external/surescripts/code-list-qualifier.d.ts.map +0 -1
- package/dist/src/interface/external/surescripts/code-list-qualifier.js +0 -17
- package/dist/src/interface/external/surescripts/code-list-qualifier.js.map +0 -1
- package/dist/src/interface/external/surescripts/dea-schedule.d.ts +0 -7
- package/dist/src/interface/external/surescripts/dea-schedule.d.ts.map +0 -1
- package/dist/src/interface/external/surescripts/dea-schedule.js +0 -32
- package/dist/src/interface/external/surescripts/dea-schedule.js.map +0 -1
- package/dist/src/interface/external/surescripts/index.d.ts +0 -7
- package/dist/src/interface/external/surescripts/index.d.ts.map +0 -1
- package/dist/src/interface/external/surescripts/index.js +0 -23
- package/dist/src/interface/external/surescripts/index.js.map +0 -1
- package/dist/src/interface/external/surescripts/ncpdp.d.ts +0 -12
- package/dist/src/interface/external/surescripts/ncpdp.d.ts.map +0 -1
- package/dist/src/interface/external/surescripts/ncpdp.js +0 -1472
- package/dist/src/interface/external/surescripts/ncpdp.js.map +0 -1
- package/dist/src/interface/external/surescripts/notifications/file-name.d.ts +0 -14
- package/dist/src/interface/external/surescripts/notifications/file-name.d.ts.map +0 -1
- package/dist/src/interface/external/surescripts/notifications/file-name.js +0 -18
- package/dist/src/interface/external/surescripts/notifications/file-name.js.map +0 -1
- package/dist/src/interface/external/surescripts/notifications/index.d.ts +0 -3
- package/dist/src/interface/external/surescripts/notifications/index.d.ts.map +0 -1
- package/dist/src/interface/external/surescripts/notifications/index.js +0 -19
- package/dist/src/interface/external/surescripts/notifications/index.js.map +0 -1
- package/dist/src/interface/external/surescripts/notifications/types.d.ts +0 -36
- package/dist/src/interface/external/surescripts/notifications/types.d.ts.map +0 -1
- package/dist/src/interface/external/surescripts/notifications/types.js +0 -20
- package/dist/src/interface/external/surescripts/notifications/types.js.map +0 -1
- package/dist/src/interface/external/surescripts/payment-code.d.ts +0 -14
- package/dist/src/interface/external/surescripts/payment-code.d.ts.map +0 -1
- package/dist/src/interface/external/surescripts/payment-code.js +0 -78
- package/dist/src/interface/external/surescripts/payment-code.js.map +0 -1
- package/dist/src/interface/external/surescripts/plan-code.d.ts +0 -7
- package/dist/src/interface/external/surescripts/plan-code.d.ts.map +0 -1
- package/dist/src/interface/external/surescripts/plan-code.js +0 -25
- package/dist/src/interface/external/surescripts/plan-code.js.map +0 -1
- package/dist/src/interface/external/surescripts/realtime-pulls/file-name.d.ts +0 -15
- package/dist/src/interface/external/surescripts/realtime-pulls/file-name.d.ts.map +0 -1
- package/dist/src/interface/external/surescripts/realtime-pulls/file-name.js +0 -19
- package/dist/src/interface/external/surescripts/realtime-pulls/file-name.js.map +0 -1
- package/dist/src/interface/external/surescripts/realtime-pulls/index.d.ts +0 -3
- package/dist/src/interface/external/surescripts/realtime-pulls/index.d.ts.map +0 -1
- package/dist/src/interface/external/surescripts/realtime-pulls/index.js +0 -19
- package/dist/src/interface/external/surescripts/realtime-pulls/index.js.map +0 -1
- package/dist/src/interface/external/surescripts/realtime-pulls/status-codes.d.ts +0 -91
- package/dist/src/interface/external/surescripts/realtime-pulls/status-codes.d.ts.map +0 -1
- package/dist/src/interface/external/surescripts/realtime-pulls/status-codes.js +0 -64
- package/dist/src/interface/external/surescripts/realtime-pulls/status-codes.js.map +0 -1
- package/dist/src/interface/external/surescripts/roster.d.ts +0 -14
- package/dist/src/interface/external/surescripts/roster.d.ts.map +0 -1
- package/dist/src/interface/external/surescripts/roster.js +0 -40
- package/dist/src/interface/external/surescripts/roster.js.map +0 -1
- package/dist/src/interface/external/surescripts/source.d.ts +0 -2
- package/dist/src/interface/external/surescripts/source.d.ts.map +0 -1
- package/dist/src/interface/external/surescripts/source.js +0 -5
- package/dist/src/interface/external/surescripts/source.js.map +0 -1
- package/dist/src/interface/index.d.ts +0 -4
- package/dist/src/interface/index.d.ts.map +0 -1
- package/dist/src/interface/index.js +0 -20
- package/dist/src/interface/index.js.map +0 -1
- package/dist/src/interface/internal/cohort.d.ts +0 -1000
- package/dist/src/interface/internal/cohort.d.ts.map +0 -1
- package/dist/src/interface/internal/cohort.js +0 -66
- package/dist/src/interface/internal/cohort.js.map +0 -1
- package/dist/src/interface/internal/consolidated.d.ts +0 -374
- package/dist/src/interface/internal/consolidated.d.ts.map +0 -1
- package/dist/src/interface/internal/consolidated.js +0 -35
- package/dist/src/interface/internal/consolidated.js.map +0 -1
- package/dist/src/interface/internal/customer.d.ts +0 -14
- package/dist/src/interface/internal/customer.d.ts.map +0 -1
- package/dist/src/interface/internal/customer.js +0 -28
- package/dist/src/interface/internal/customer.js.map +0 -1
- package/dist/src/interface/internal/document-query.d.ts +0 -31
- package/dist/src/interface/internal/document-query.d.ts.map +0 -1
- package/dist/src/interface/internal/document-query.js +0 -21
- package/dist/src/interface/internal/document-query.js.map +0 -1
- package/dist/src/interface/internal/index.d.ts +0 -5
- package/dist/src/interface/internal/index.d.ts.map +0 -1
- package/dist/src/interface/internal/index.js +0 -21
- package/dist/src/interface/internal/index.js.map +0 -1
- package/dist/src/interface/schema/feedback.d.ts +0 -36
- package/dist/src/interface/schema/feedback.d.ts.map +0 -1
- package/dist/src/interface/schema/feedback.js +0 -17
- package/dist/src/interface/schema/feedback.js.map +0 -1
- package/dist/src/interface/schema/index.d.ts +0 -2
- package/dist/src/interface/schema/index.d.ts.map +0 -1
- package/dist/src/interface/schema/index.js +0 -18
- package/dist/src/interface/schema/index.js.map +0 -1
- package/dist/src/medical/fhir/bundle.d.ts +0 -11
- package/dist/src/medical/fhir/bundle.d.ts.map +0 -1
- package/dist/src/medical/fhir/bundle.js +0 -23
- package/dist/src/medical/fhir/bundle.js.map +0 -1
- package/dist/src/medical/fhir/coding.d.ts +0 -16
- package/dist/src/medical/fhir/coding.d.ts.map +0 -1
- package/dist/src/medical/fhir/coding.js +0 -49
- package/dist/src/medical/fhir/coding.js.map +0 -1
- package/dist/src/medical/fhir/constants.d.ts +0 -42
- package/dist/src/medical/fhir/constants.d.ts.map +0 -1
- package/dist/src/medical/fhir/constants.js +0 -68
- package/dist/src/medical/fhir/constants.js.map +0 -1
- package/dist/src/medical/fhir/conversion.d.ts +0 -3
- package/dist/src/medical/fhir/conversion.d.ts.map +0 -1
- package/dist/src/medical/fhir/conversion.js +0 -5
- package/dist/src/medical/fhir/conversion.js.map +0 -1
- package/dist/src/medical/fhir/imaging-detection.d.ts +0 -693
- package/dist/src/medical/fhir/imaging-detection.d.ts.map +0 -1
- package/dist/src/medical/fhir/imaging-detection.js +0 -361
- package/dist/src/medical/fhir/imaging-detection.js.map +0 -1
- package/dist/src/medical/fhir/loinc/loinc-class-display-lookup.json +0 -1730
- package/dist/src/medical/fhir/loinc/loinc-code-class-lookup.json +0 -432994
- package/dist/src/medical/fhir/observations.d.ts +0 -9
- package/dist/src/medical/fhir/observations.d.ts.map +0 -1
- package/dist/src/medical/fhir/observations.js +0 -55
- package/dist/src/medical/fhir/observations.js.map +0 -1
- package/dist/src/medical/fhir/procedure-type.d.ts +0 -1316
- package/dist/src/medical/fhir/procedure-type.d.ts.map +0 -1
- package/dist/src/medical/fhir/procedure-type.js +0 -263
- package/dist/src/medical/fhir/procedure-type.js.map +0 -1
- package/dist/src/medical/fhir/resources.d.ts +0 -6
- package/dist/src/medical/fhir/resources.d.ts.map +0 -1
- package/dist/src/medical/fhir/resources.js +0 -81
- package/dist/src/medical/fhir/resources.js.map +0 -1
- package/dist/src/medical/fhir/specialty-codes.d.ts +0 -79
- package/dist/src/medical/fhir/specialty-codes.d.ts.map +0 -1
- package/dist/src/medical/fhir/specialty-codes.js +0 -1722
- package/dist/src/medical/fhir/specialty-codes.js.map +0 -1
- package/dist/src/medical/index.d.ts +0 -10
- package/dist/src/medical/index.d.ts.map +0 -1
- package/dist/src/medical/index.js +0 -26
- package/dist/src/medical/index.js.map +0 -1
- package/dist/src/medical/webhook/webhook-request.d.ts +0 -4264
- package/dist/src/medical/webhook/webhook-request.d.ts.map +0 -1
- package/dist/src/medical/webhook/webhook-request.js +0 -348
- package/dist/src/medical/webhook/webhook-request.js.map +0 -1
- package/dist/src/medical/webhook/webhook-status-response.d.ts +0 -7
- package/dist/src/medical/webhook/webhook-status-response.d.ts.map +0 -1
- package/dist/src/medical/webhook/webhook-status-response.js +0 -3
- package/dist/src/medical/webhook/webhook-status-response.js.map +0 -1
- package/dist/src/net/__tests__/axios.d.ts +0 -42
- package/dist/src/net/__tests__/axios.d.ts.map +0 -1
- package/dist/src/net/__tests__/axios.js +0 -113
- package/dist/src/net/__tests__/axios.js.map +0 -1
- package/dist/src/net/__tests__/retry.test.d.ts +0 -2
- package/dist/src/net/__tests__/retry.test.d.ts.map +0 -1
- package/dist/src/net/__tests__/retry.test.js +0 -267
- package/dist/src/net/__tests__/retry.test.js.map +0 -1
- package/dist/src/net/error.d.ts +0 -24
- package/dist/src/net/error.d.ts.map +0 -1
- package/dist/src/net/error.js +0 -81
- package/dist/src/net/error.js.map +0 -1
- package/dist/src/net/http.d.ts +0 -25
- package/dist/src/net/http.d.ts.map +0 -1
- package/dist/src/net/http.js +0 -75
- package/dist/src/net/http.js.map +0 -1
- package/dist/src/net/index.d.ts +0 -5
- package/dist/src/net/index.d.ts.map +0 -1
- package/dist/src/net/index.js +0 -21
- package/dist/src/net/index.js.map +0 -1
- package/dist/src/net/retry.d.ts +0 -38
- package/dist/src/net/retry.d.ts.map +0 -1
- package/dist/src/net/retry.js +0 -134
- package/dist/src/net/retry.js.map +0 -1
- package/dist/src/net/url.d.ts +0 -2
- package/dist/src/net/url.d.ts.map +0 -1
- package/dist/src/net/url.js +0 -15
- package/dist/src/net/url.js.map +0 -1
- package/dist/src/util/__tests__/base64.test.d.ts +0 -2
- package/dist/src/util/__tests__/base64.test.d.ts.map +0 -1
- package/dist/src/util/__tests__/base64.test.js +0 -66
- package/dist/src/util/__tests__/base64.test.js.map +0 -1
- package/dist/src/util/base64.d.ts +0 -25
- package/dist/src/util/base64.d.ts.map +0 -1
- package/dist/src/util/base64.js +0 -52
- package/dist/src/util/base64.js.map +0 -1
- package/dist/src/util/duration.d.ts +0 -13
- package/dist/src/util/duration.d.ts.map +0 -1
- package/dist/src/util/duration.js +0 -35
- package/dist/src/util/duration.js.map +0 -1
- package/dist/src/util/index.d.ts +0 -5
- package/dist/src/util/index.d.ts.map +0 -1
- package/dist/src/util/index.js +0 -21
- package/dist/src/util/index.js.map +0 -1
- package/dist/src/util/sqs-delay-from-uuid.d.ts +0 -11
- package/dist/src/util/sqs-delay-from-uuid.d.ts.map +0 -1
- package/dist/src/util/sqs-delay-from-uuid.js +0 -21
- package/dist/src/util/sqs-delay-from-uuid.js.map +0 -1
- package/dist/src/util/stack-trace.d.ts +0 -17
- package/dist/src/util/stack-trace.d.ts.map +0 -1
- package/dist/src/util/stack-trace.js +0 -32
- package/dist/src/util/stack-trace.js.map +0 -1
- package/dist/src/util/uuid-v7.d.ts +0 -162
- package/dist/src/util/uuid-v7.d.ts.map +0 -1
- package/dist/src/util/uuid-v7.js +0 -418
- package/dist/src/util/uuid-v7.js.map +0 -1
- package/dist/src/util/zod.d.ts +0 -13
- package/dist/src/util/zod.d.ts.map +0 -1
- package/dist/src/util/zod.js +0 -26
- package/dist/src/util/zod.js.map +0 -1
- package/dist/util/sqs-delay-from-uuid.d.ts +0 -1
- package/dist/util/sqs-delay-from-uuid.d.ts.map +0 -1
- package/dist/util/sqs-delay-from-uuid.js +0 -2
- package/dist/util/sqs-delay-from-uuid.js.map +0 -1
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare enum TreatmentType {
|
|
3
|
-
acuteCare = "acuteCare",
|
|
4
|
-
ambulatory = "ambulatory",
|
|
5
|
-
hospital = "hospital",
|
|
6
|
-
labSystems = "labSystems",
|
|
7
|
-
pharmacy = "pharmacy",
|
|
8
|
-
postAcuteCare = "postAcuteCare"
|
|
9
|
-
}
|
|
10
|
-
export declare enum OrganizationBizType {
|
|
11
|
-
healthcareProvider = "healthcare_provider",
|
|
12
|
-
healthcareITVendor = "healthcare_it_vendor"
|
|
13
|
-
}
|
|
14
|
-
export declare const internalOrganizationDTOSchema: z.ZodObject<{
|
|
15
|
-
oid: z.ZodString;
|
|
16
|
-
cxId: z.ZodString;
|
|
17
|
-
name: z.ZodString;
|
|
18
|
-
shortcode: z.ZodOptional<z.ZodString>;
|
|
19
|
-
type: z.ZodNativeEnum<typeof TreatmentType>;
|
|
20
|
-
location: z.ZodObject<{
|
|
21
|
-
addressLine1: z.ZodString;
|
|
22
|
-
addressLine2: z.ZodOptional<z.ZodString>;
|
|
23
|
-
city: z.ZodString;
|
|
24
|
-
state: z.ZodString;
|
|
25
|
-
zip: z.ZodString;
|
|
26
|
-
country: z.ZodString;
|
|
27
|
-
}, "strip", z.ZodTypeAny, {
|
|
28
|
-
city: string;
|
|
29
|
-
state: string;
|
|
30
|
-
zip: string;
|
|
31
|
-
country: string;
|
|
32
|
-
addressLine1: string;
|
|
33
|
-
addressLine2?: string | undefined;
|
|
34
|
-
}, {
|
|
35
|
-
city: string;
|
|
36
|
-
state: string;
|
|
37
|
-
zip: string;
|
|
38
|
-
country: string;
|
|
39
|
-
addressLine1: string;
|
|
40
|
-
addressLine2?: string | undefined;
|
|
41
|
-
}>;
|
|
42
|
-
principalOid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
43
|
-
businessType: z.ZodNativeEnum<typeof OrganizationBizType>;
|
|
44
|
-
cqApproved: z.ZodBoolean;
|
|
45
|
-
cqActive: z.ZodBoolean;
|
|
46
|
-
cwApproved: z.ZodBoolean;
|
|
47
|
-
cwActive: z.ZodBoolean;
|
|
48
|
-
}, "strip", z.ZodTypeAny, {
|
|
49
|
-
type: TreatmentType;
|
|
50
|
-
name: string;
|
|
51
|
-
cxId: string;
|
|
52
|
-
oid: string;
|
|
53
|
-
location: {
|
|
54
|
-
city: string;
|
|
55
|
-
state: string;
|
|
56
|
-
zip: string;
|
|
57
|
-
country: string;
|
|
58
|
-
addressLine1: string;
|
|
59
|
-
addressLine2?: string | undefined;
|
|
60
|
-
};
|
|
61
|
-
businessType: OrganizationBizType;
|
|
62
|
-
cqApproved: boolean;
|
|
63
|
-
cqActive: boolean;
|
|
64
|
-
cwApproved: boolean;
|
|
65
|
-
cwActive: boolean;
|
|
66
|
-
shortcode?: string | undefined;
|
|
67
|
-
principalOid?: string | null | undefined;
|
|
68
|
-
}, {
|
|
69
|
-
type: TreatmentType;
|
|
70
|
-
name: string;
|
|
71
|
-
cxId: string;
|
|
72
|
-
oid: string;
|
|
73
|
-
location: {
|
|
74
|
-
city: string;
|
|
75
|
-
state: string;
|
|
76
|
-
zip: string;
|
|
77
|
-
country: string;
|
|
78
|
-
addressLine1: string;
|
|
79
|
-
addressLine2?: string | undefined;
|
|
80
|
-
};
|
|
81
|
-
businessType: OrganizationBizType;
|
|
82
|
-
cqApproved: boolean;
|
|
83
|
-
cqActive: boolean;
|
|
84
|
-
cwApproved: boolean;
|
|
85
|
-
cwActive: boolean;
|
|
86
|
-
shortcode?: string | undefined;
|
|
87
|
-
principalOid?: string | null | undefined;
|
|
88
|
-
}>;
|
|
89
|
-
export type InternalOrganizationDTO = z.infer<typeof internalOrganizationDTOSchema>;
|
|
90
|
-
//# sourceMappingURL=organization.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"organization.d.ts","sourceRoot":"","sources":["../../../src/domain/organization.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,oBAAY,aAAa;IACvB,SAAS,cAAc;IACvB,UAAU,eAAe;IACzB,QAAQ,aAAa;IACrB,UAAU,eAAe;IACzB,QAAQ,aAAa;IACrB,aAAa,kBAAkB;CAChC;AAGD,oBAAY,mBAAmB;IAC7B,kBAAkB,wBAAwB;IAC1C,kBAAkB,yBAAyB;CAC5C;AAED,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoBxC,CAAC;AAEH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC"}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.internalOrganizationDTOSchema = exports.OrganizationBizType = exports.TreatmentType = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
var TreatmentType;
|
|
6
|
-
(function (TreatmentType) {
|
|
7
|
-
TreatmentType["acuteCare"] = "acuteCare";
|
|
8
|
-
TreatmentType["ambulatory"] = "ambulatory";
|
|
9
|
-
TreatmentType["hospital"] = "hospital";
|
|
10
|
-
TreatmentType["labSystems"] = "labSystems";
|
|
11
|
-
TreatmentType["pharmacy"] = "pharmacy";
|
|
12
|
-
TreatmentType["postAcuteCare"] = "postAcuteCare";
|
|
13
|
-
})(TreatmentType || (exports.TreatmentType = TreatmentType = {}));
|
|
14
|
-
// TODO if you update this, make sure to update core's too (unless it has been removed)
|
|
15
|
-
var OrganizationBizType;
|
|
16
|
-
(function (OrganizationBizType) {
|
|
17
|
-
OrganizationBizType["healthcareProvider"] = "healthcare_provider";
|
|
18
|
-
OrganizationBizType["healthcareITVendor"] = "healthcare_it_vendor";
|
|
19
|
-
})(OrganizationBizType || (exports.OrganizationBizType = OrganizationBizType = {}));
|
|
20
|
-
exports.internalOrganizationDTOSchema = zod_1.z.object({
|
|
21
|
-
oid: zod_1.z.string(),
|
|
22
|
-
cxId: zod_1.z.string(),
|
|
23
|
-
name: zod_1.z.string(),
|
|
24
|
-
shortcode: zod_1.z.string().optional(),
|
|
25
|
-
type: zod_1.z.nativeEnum(TreatmentType),
|
|
26
|
-
location: zod_1.z.object({
|
|
27
|
-
addressLine1: zod_1.z.string(),
|
|
28
|
-
addressLine2: zod_1.z.string().optional(),
|
|
29
|
-
city: zod_1.z.string(),
|
|
30
|
-
state: zod_1.z.string(),
|
|
31
|
-
zip: zod_1.z.string(),
|
|
32
|
-
country: zod_1.z.string(),
|
|
33
|
-
}),
|
|
34
|
-
principalOid: zod_1.z.string().nullish(),
|
|
35
|
-
businessType: zod_1.z.nativeEnum(OrganizationBizType),
|
|
36
|
-
cqApproved: zod_1.z.boolean(),
|
|
37
|
-
cqActive: zod_1.z.boolean(),
|
|
38
|
-
cwApproved: zod_1.z.boolean(),
|
|
39
|
-
cwActive: zod_1.z.boolean(),
|
|
40
|
-
});
|
|
41
|
-
//# sourceMappingURL=organization.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"organization.js","sourceRoot":"","sources":["../../../src/domain/organization.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,IAAY,aAOX;AAPD,WAAY,aAAa;IACvB,wCAAuB,CAAA;IACvB,0CAAyB,CAAA;IACzB,sCAAqB,CAAA;IACrB,0CAAyB,CAAA;IACzB,sCAAqB,CAAA;IACrB,gDAA+B,CAAA;AACjC,CAAC,EAPW,aAAa,6BAAb,aAAa,QAOxB;AAED,uFAAuF;AACvF,IAAY,mBAGX;AAHD,WAAY,mBAAmB;IAC7B,iEAA0C,CAAA;IAC1C,kEAA2C,CAAA;AAC7C,CAAC,EAHW,mBAAmB,mCAAnB,mBAAmB,QAG9B;AAEY,QAAA,6BAA6B,GAAG,OAAC,CAAC,MAAM,CAAC;IACpD,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,IAAI,EAAE,OAAC,CAAC,UAAU,CAAC,aAAa,CAAC;IACjC,QAAQ,EAAE,OAAC,CAAC,MAAM,CAAC;QACjB,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE;QACxB,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QACnC,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;QAChB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;QACjB,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;QACf,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE;KACpB,CAAC;IACF,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE;IAClC,YAAY,EAAE,OAAC,CAAC,UAAU,CAAC,mBAAmB,CAAC;IAC/C,UAAU,EAAE,OAAC,CAAC,OAAO,EAAE;IACvB,QAAQ,EAAE,OAAC,CAAC,OAAO,EAAE;IACrB,UAAU,EAAE,OAAC,CAAC,OAAO,EAAE;IACvB,QAAQ,EAAE,OAAC,CAAC,OAAO,EAAE;CACtB,CAAC,CAAC"}
|
|
@@ -1,230 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const defaultItemsPerPage = 50;
|
|
3
|
-
export declare const maxItemsPerPage = 500;
|
|
4
|
-
declare const sortItemSchema: z.ZodEffects<z.ZodString, {
|
|
5
|
-
col: string;
|
|
6
|
-
order: "asc" | "desc";
|
|
7
|
-
}, string>;
|
|
8
|
-
export type SortItem = z.infer<typeof sortItemSchema>;
|
|
9
|
-
declare const compositeCursorSchema: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
|
|
10
|
-
export type CompositeCursor = z.infer<typeof compositeCursorSchema>;
|
|
11
|
-
export declare function createQueryMetaSchemaV2(maxItems?: number): z.ZodEffects<z.ZodEffects<z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
12
|
-
fromItem: z.ZodOptional<z.ZodEffects<z.ZodString, Record<string, string | null>, string>>;
|
|
13
|
-
toItem: z.ZodOptional<z.ZodNever>;
|
|
14
|
-
}, "strip", z.ZodTypeAny, {
|
|
15
|
-
fromItem?: Record<string, string | null> | undefined;
|
|
16
|
-
toItem?: undefined;
|
|
17
|
-
}, {
|
|
18
|
-
fromItem?: string | undefined;
|
|
19
|
-
toItem?: undefined;
|
|
20
|
-
}>, z.ZodObject<{
|
|
21
|
-
fromItem: z.ZodOptional<z.ZodNever>;
|
|
22
|
-
toItem: z.ZodOptional<z.ZodEffects<z.ZodString, Record<string, string | null>, string>>;
|
|
23
|
-
}, "strip", z.ZodTypeAny, {
|
|
24
|
-
fromItem?: undefined;
|
|
25
|
-
toItem?: Record<string, string | null> | undefined;
|
|
26
|
-
}, {
|
|
27
|
-
fromItem?: undefined;
|
|
28
|
-
toItem?: string | undefined;
|
|
29
|
-
}>]>, z.ZodObject<{
|
|
30
|
-
sort: z.ZodEffects<z.ZodOptional<z.ZodString>, {
|
|
31
|
-
col: string;
|
|
32
|
-
order: "asc" | "desc";
|
|
33
|
-
}[], string | undefined>;
|
|
34
|
-
count: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodNumber, number, unknown>, number, unknown>, number, unknown>>;
|
|
35
|
-
}, "strip", z.ZodTypeAny, {
|
|
36
|
-
sort: {
|
|
37
|
-
col: string;
|
|
38
|
-
order: "asc" | "desc";
|
|
39
|
-
}[];
|
|
40
|
-
count?: number | undefined;
|
|
41
|
-
}, {
|
|
42
|
-
sort?: string | undefined;
|
|
43
|
-
count?: unknown;
|
|
44
|
-
}>>, {
|
|
45
|
-
sort: {
|
|
46
|
-
col: string;
|
|
47
|
-
order: "asc" | "desc";
|
|
48
|
-
}[];
|
|
49
|
-
originalSort: {
|
|
50
|
-
col: string;
|
|
51
|
-
order: "asc" | "desc";
|
|
52
|
-
}[];
|
|
53
|
-
fromItem?: Record<string, string | null> | undefined;
|
|
54
|
-
toItem?: undefined;
|
|
55
|
-
count?: number | undefined;
|
|
56
|
-
} | {
|
|
57
|
-
sort: {
|
|
58
|
-
col: string;
|
|
59
|
-
order: "asc" | "desc";
|
|
60
|
-
}[];
|
|
61
|
-
originalSort: {
|
|
62
|
-
col: string;
|
|
63
|
-
order: "asc" | "desc";
|
|
64
|
-
}[];
|
|
65
|
-
fromItem?: undefined;
|
|
66
|
-
toItem?: Record<string, string | null> | undefined;
|
|
67
|
-
count?: number | undefined;
|
|
68
|
-
}, ({
|
|
69
|
-
fromItem?: string | undefined;
|
|
70
|
-
toItem?: undefined;
|
|
71
|
-
} | {
|
|
72
|
-
fromItem?: undefined;
|
|
73
|
-
toItem?: string | undefined;
|
|
74
|
-
}) & {
|
|
75
|
-
sort?: string | undefined;
|
|
76
|
-
count?: unknown;
|
|
77
|
-
}>, {
|
|
78
|
-
sort: {
|
|
79
|
-
col: string;
|
|
80
|
-
order: "asc" | "desc";
|
|
81
|
-
}[];
|
|
82
|
-
originalSort: {
|
|
83
|
-
col: string;
|
|
84
|
-
order: "asc" | "desc";
|
|
85
|
-
}[];
|
|
86
|
-
fromItem?: Record<string, string | null> | undefined;
|
|
87
|
-
toItem?: undefined;
|
|
88
|
-
count?: number | undefined;
|
|
89
|
-
} | {
|
|
90
|
-
sort: {
|
|
91
|
-
col: string;
|
|
92
|
-
order: "asc" | "desc";
|
|
93
|
-
}[];
|
|
94
|
-
originalSort: {
|
|
95
|
-
col: string;
|
|
96
|
-
order: "asc" | "desc";
|
|
97
|
-
}[];
|
|
98
|
-
fromItem?: undefined;
|
|
99
|
-
toItem?: Record<string, string | null> | undefined;
|
|
100
|
-
count?: number | undefined;
|
|
101
|
-
}, ({
|
|
102
|
-
fromItem?: string | undefined;
|
|
103
|
-
toItem?: undefined;
|
|
104
|
-
} | {
|
|
105
|
-
fromItem?: undefined;
|
|
106
|
-
toItem?: string | undefined;
|
|
107
|
-
}) & {
|
|
108
|
-
sort?: string | undefined;
|
|
109
|
-
count?: unknown;
|
|
110
|
-
}>;
|
|
111
|
-
declare const queryMetaSchemaV2: z.ZodEffects<z.ZodEffects<z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
112
|
-
fromItem: z.ZodOptional<z.ZodEffects<z.ZodString, Record<string, string | null>, string>>;
|
|
113
|
-
toItem: z.ZodOptional<z.ZodNever>;
|
|
114
|
-
}, "strip", z.ZodTypeAny, {
|
|
115
|
-
fromItem?: Record<string, string | null> | undefined;
|
|
116
|
-
toItem?: undefined;
|
|
117
|
-
}, {
|
|
118
|
-
fromItem?: string | undefined;
|
|
119
|
-
toItem?: undefined;
|
|
120
|
-
}>, z.ZodObject<{
|
|
121
|
-
fromItem: z.ZodOptional<z.ZodNever>;
|
|
122
|
-
toItem: z.ZodOptional<z.ZodEffects<z.ZodString, Record<string, string | null>, string>>;
|
|
123
|
-
}, "strip", z.ZodTypeAny, {
|
|
124
|
-
fromItem?: undefined;
|
|
125
|
-
toItem?: Record<string, string | null> | undefined;
|
|
126
|
-
}, {
|
|
127
|
-
fromItem?: undefined;
|
|
128
|
-
toItem?: string | undefined;
|
|
129
|
-
}>]>, z.ZodObject<{
|
|
130
|
-
sort: z.ZodEffects<z.ZodOptional<z.ZodString>, {
|
|
131
|
-
col: string;
|
|
132
|
-
order: "asc" | "desc";
|
|
133
|
-
}[], string | undefined>;
|
|
134
|
-
count: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodNumber, number, unknown>, number, unknown>, number, unknown>>;
|
|
135
|
-
}, "strip", z.ZodTypeAny, {
|
|
136
|
-
sort: {
|
|
137
|
-
col: string;
|
|
138
|
-
order: "asc" | "desc";
|
|
139
|
-
}[];
|
|
140
|
-
count?: number | undefined;
|
|
141
|
-
}, {
|
|
142
|
-
sort?: string | undefined;
|
|
143
|
-
count?: unknown;
|
|
144
|
-
}>>, {
|
|
145
|
-
sort: {
|
|
146
|
-
col: string;
|
|
147
|
-
order: "asc" | "desc";
|
|
148
|
-
}[];
|
|
149
|
-
originalSort: {
|
|
150
|
-
col: string;
|
|
151
|
-
order: "asc" | "desc";
|
|
152
|
-
}[];
|
|
153
|
-
fromItem?: Record<string, string | null> | undefined;
|
|
154
|
-
toItem?: undefined;
|
|
155
|
-
count?: number | undefined;
|
|
156
|
-
} | {
|
|
157
|
-
sort: {
|
|
158
|
-
col: string;
|
|
159
|
-
order: "asc" | "desc";
|
|
160
|
-
}[];
|
|
161
|
-
originalSort: {
|
|
162
|
-
col: string;
|
|
163
|
-
order: "asc" | "desc";
|
|
164
|
-
}[];
|
|
165
|
-
fromItem?: undefined;
|
|
166
|
-
toItem?: Record<string, string | null> | undefined;
|
|
167
|
-
count?: number | undefined;
|
|
168
|
-
}, ({
|
|
169
|
-
fromItem?: string | undefined;
|
|
170
|
-
toItem?: undefined;
|
|
171
|
-
} | {
|
|
172
|
-
fromItem?: undefined;
|
|
173
|
-
toItem?: string | undefined;
|
|
174
|
-
}) & {
|
|
175
|
-
sort?: string | undefined;
|
|
176
|
-
count?: unknown;
|
|
177
|
-
}>, {
|
|
178
|
-
sort: {
|
|
179
|
-
col: string;
|
|
180
|
-
order: "asc" | "desc";
|
|
181
|
-
}[];
|
|
182
|
-
originalSort: {
|
|
183
|
-
col: string;
|
|
184
|
-
order: "asc" | "desc";
|
|
185
|
-
}[];
|
|
186
|
-
fromItem?: Record<string, string | null> | undefined;
|
|
187
|
-
toItem?: undefined;
|
|
188
|
-
count?: number | undefined;
|
|
189
|
-
} | {
|
|
190
|
-
sort: {
|
|
191
|
-
col: string;
|
|
192
|
-
order: "asc" | "desc";
|
|
193
|
-
}[];
|
|
194
|
-
originalSort: {
|
|
195
|
-
col: string;
|
|
196
|
-
order: "asc" | "desc";
|
|
197
|
-
}[];
|
|
198
|
-
fromItem?: undefined;
|
|
199
|
-
toItem?: Record<string, string | null> | undefined;
|
|
200
|
-
count?: number | undefined;
|
|
201
|
-
}, ({
|
|
202
|
-
fromItem?: string | undefined;
|
|
203
|
-
toItem?: undefined;
|
|
204
|
-
} | {
|
|
205
|
-
fromItem?: undefined;
|
|
206
|
-
toItem?: string | undefined;
|
|
207
|
-
}) & {
|
|
208
|
-
sort?: string | undefined;
|
|
209
|
-
count?: unknown;
|
|
210
|
-
}>;
|
|
211
|
-
export type HttpMetaV2 = z.infer<typeof queryMetaSchemaV2>;
|
|
212
|
-
export declare const paginationV2MetaSchema: z.ZodObject<{
|
|
213
|
-
itemsInTotal: z.ZodNumber;
|
|
214
|
-
itemsOnPage: z.ZodNumber;
|
|
215
|
-
nextPage: z.ZodOptional<z.ZodString>;
|
|
216
|
-
prevPage: z.ZodOptional<z.ZodString>;
|
|
217
|
-
}, "strip", z.ZodTypeAny, {
|
|
218
|
-
itemsInTotal: number;
|
|
219
|
-
itemsOnPage: number;
|
|
220
|
-
nextPage?: string | undefined;
|
|
221
|
-
prevPage?: string | undefined;
|
|
222
|
-
}, {
|
|
223
|
-
itemsInTotal: number;
|
|
224
|
-
itemsOnPage: number;
|
|
225
|
-
nextPage?: string | undefined;
|
|
226
|
-
prevPage?: string | undefined;
|
|
227
|
-
}>;
|
|
228
|
-
export type PaginationV2Meta = z.infer<typeof paginationV2MetaSchema>;
|
|
229
|
-
export {};
|
|
230
|
-
//# sourceMappingURL=pagination-v2.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pagination-v2.d.ts","sourceRoot":"","sources":["../../../src/domain/pagination-v2.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,mBAAmB,KAAK,CAAC;AACtC,eAAO,MAAM,eAAe,MAAM,CAAC;AAEnC,QAAA,MAAM,cAAc;;WAkBY,KAAK,GAAG,MAAM;UAC5C,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAmBtD,QAAA,MAAM,qBAAqB,sDAA8C,CAAC;AAC1E,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AA0BpE,wBAAgB,uBAAuB,CAAC,QAAQ,GAAE,MAAwB;;;;;;;;;;;;;;;;;;;;;eAjD1C,KAAK,GAAG,MAAM;;;;;;eAAd,KAAK,GAAG,MAAM;;;;;;;;;;;;;eAAd,KAAK,GAAG,MAAM;;;;;;;;;;;;eAAd,KAAK,GAAG,MAAM;;;;;;;;;;;;;;;;;;;;;eAAd,KAAK,GAAG,MAAM;;;;;;;;;;;;eAAd,KAAK,GAAG,MAAM;;;;;;;;;;;;;;GAyH7C;AAED,QAAA,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;eA3HS,KAAK,GAAG,MAAM;;;;;;eAAd,KAAK,GAAG,MAAM;;;;;;;;;;;;;eAAd,KAAK,GAAG,MAAM;;;;;;;;;;;;eAAd,KAAK,GAAG,MAAM;;;;;;;;;;;;;;;;;;;;;eAAd,KAAK,GAAG,MAAM;;;;;;;;;;;;eAAd,KAAK,GAAG,MAAM;;;;;;;;;;;;;;EA2HK,CAAC;AACpD,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE3D,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;EAKjC,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
|
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.paginationV2MetaSchema = exports.maxItemsPerPage = exports.defaultItemsPerPage = void 0;
|
|
4
|
-
exports.createQueryMetaSchemaV2 = createQueryMetaSchemaV2;
|
|
5
|
-
const zod_1 = require("zod");
|
|
6
|
-
const zod_2 = require("../common/zod");
|
|
7
|
-
const cursor_utils_1 = require("./cursor-utils");
|
|
8
|
-
exports.defaultItemsPerPage = 50;
|
|
9
|
-
exports.maxItemsPerPage = 500;
|
|
10
|
-
const sortItemSchema = zod_1.z.string().transform((val, ctx) => {
|
|
11
|
-
const [col, order] = val.split("=");
|
|
12
|
-
if (!col || !order) {
|
|
13
|
-
ctx.addIssue({
|
|
14
|
-
code: zod_1.z.ZodIssueCode.custom,
|
|
15
|
-
message: `Invalid sort format: ${val}. Expected: column=order`,
|
|
16
|
-
});
|
|
17
|
-
return zod_1.z.NEVER;
|
|
18
|
-
}
|
|
19
|
-
if (order !== "asc" && order !== "desc") {
|
|
20
|
-
ctx.addIssue({
|
|
21
|
-
code: zod_1.z.ZodIssueCode.custom,
|
|
22
|
-
message: `Invalid sort order: ${order}. Must be 'asc' or 'desc'`,
|
|
23
|
-
});
|
|
24
|
-
return zod_1.z.NEVER;
|
|
25
|
-
}
|
|
26
|
-
return { col, order: order };
|
|
27
|
-
});
|
|
28
|
-
function addIdSortIfNotExists(items) {
|
|
29
|
-
const hasIdSort = items.some(item => item.col === "id");
|
|
30
|
-
return hasIdSort ? items : [...items, { col: "id", order: "desc" }];
|
|
31
|
-
}
|
|
32
|
-
const sortStringSchema = zod_1.z
|
|
33
|
-
.string()
|
|
34
|
-
.optional()
|
|
35
|
-
.transform(val => {
|
|
36
|
-
if (!val) {
|
|
37
|
-
return [];
|
|
38
|
-
}
|
|
39
|
-
const items = val.split(",").filter(item => item.trim());
|
|
40
|
-
return items.map(item => sortItemSchema.parse(item));
|
|
41
|
-
});
|
|
42
|
-
const compositeCursorSchema = zod_1.z.record(zod_1.z.string(), zod_1.z.string().nullable());
|
|
43
|
-
const cursorSchema = zod_1.z.string().transform((val, ctx) => {
|
|
44
|
-
let decoded;
|
|
45
|
-
try {
|
|
46
|
-
decoded = (0, cursor_utils_1.decodeCursor)(val);
|
|
47
|
-
}
|
|
48
|
-
catch (error) {
|
|
49
|
-
ctx.addIssue({
|
|
50
|
-
code: zod_1.z.ZodIssueCode.custom,
|
|
51
|
-
message: "Invalid cursor: unable to decode cursor",
|
|
52
|
-
});
|
|
53
|
-
return zod_1.z.NEVER;
|
|
54
|
-
}
|
|
55
|
-
try {
|
|
56
|
-
decoded = (0, cursor_utils_1.decodeCursor)(val);
|
|
57
|
-
return compositeCursorSchema.parse(decoded);
|
|
58
|
-
}
|
|
59
|
-
catch (error) {
|
|
60
|
-
ctx.addIssue({
|
|
61
|
-
code: zod_1.z.ZodIssueCode.custom,
|
|
62
|
-
message: "Invalid cursor contents: " + JSON.stringify(decoded),
|
|
63
|
-
});
|
|
64
|
-
return zod_1.z.NEVER;
|
|
65
|
-
}
|
|
66
|
-
});
|
|
67
|
-
function createQueryMetaSchemaV2(maxItems = exports.maxItemsPerPage) {
|
|
68
|
-
return zod_1.z
|
|
69
|
-
.intersection(zod_1.z.union([
|
|
70
|
-
zod_1.z.object({
|
|
71
|
-
fromItem: cursorSchema.optional(),
|
|
72
|
-
toItem: zod_1.z.never().optional(),
|
|
73
|
-
}),
|
|
74
|
-
zod_1.z.object({
|
|
75
|
-
fromItem: zod_1.z.never().optional(),
|
|
76
|
-
toItem: cursorSchema.optional(),
|
|
77
|
-
}),
|
|
78
|
-
], { errorMap: () => ({ message: "Either fromItem or toItem can be provided, but not both" }) }), zod_1.z.object({
|
|
79
|
-
sort: sortStringSchema,
|
|
80
|
-
count: zod_2.numericValueSchema
|
|
81
|
-
.refine(count => count >= 0, {
|
|
82
|
-
message: `Count has to be greater than or equal to 0`,
|
|
83
|
-
})
|
|
84
|
-
.refine(count => count <= maxItems, {
|
|
85
|
-
message: `Count has to be less than or equal to ${maxItems}`,
|
|
86
|
-
})
|
|
87
|
-
.optional(),
|
|
88
|
-
}))
|
|
89
|
-
.transform(data => {
|
|
90
|
-
// Store the original user-provided sort (without auto-added ID sort)
|
|
91
|
-
const originalSort = data.sort;
|
|
92
|
-
// Add ID sort if not already present for the final sort
|
|
93
|
-
const sortWithId = addIdSortIfNotExists(data.sort);
|
|
94
|
-
// Reorient ordering based on paginationV2 direction
|
|
95
|
-
const shouldReverseOrder = !!data.toItem;
|
|
96
|
-
const reorientedSort = sortWithId.map(({ col, order }) => ({
|
|
97
|
-
col,
|
|
98
|
-
order: shouldReverseOrder
|
|
99
|
-
? order === "asc"
|
|
100
|
-
? "desc"
|
|
101
|
-
: "asc"
|
|
102
|
-
: order,
|
|
103
|
-
}));
|
|
104
|
-
return {
|
|
105
|
-
...data,
|
|
106
|
-
sort: reorientedSort,
|
|
107
|
-
originalSort,
|
|
108
|
-
};
|
|
109
|
-
})
|
|
110
|
-
.refine(data => {
|
|
111
|
-
const cursor = data.fromItem ?? data.toItem;
|
|
112
|
-
const sort = data.sort;
|
|
113
|
-
if (sort && cursor) {
|
|
114
|
-
const sortColumnCount = sort.length;
|
|
115
|
-
const cursorKeyCount = Object.keys(cursor).length;
|
|
116
|
-
if (sortColumnCount !== cursorKeyCount) {
|
|
117
|
-
return false;
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
return true;
|
|
121
|
-
}, {
|
|
122
|
-
message: "Number of sort columns should match the number of cursor keys",
|
|
123
|
-
});
|
|
124
|
-
}
|
|
125
|
-
const queryMetaSchemaV2 = createQueryMetaSchemaV2();
|
|
126
|
-
exports.paginationV2MetaSchema = zod_1.z.object({
|
|
127
|
-
itemsInTotal: zod_1.z.number(),
|
|
128
|
-
itemsOnPage: zod_1.z.number(),
|
|
129
|
-
nextPage: zod_1.z.string().optional(),
|
|
130
|
-
prevPage: zod_1.z.string().optional(),
|
|
131
|
-
});
|
|
132
|
-
//# sourceMappingURL=pagination-v2.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pagination-v2.js","sourceRoot":"","sources":["../../../src/domain/pagination-v2.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare function createQueryMetaSchema(maxItems?: number): z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
3
|
-
fromItem: z.ZodOptional<z.ZodString>;
|
|
4
|
-
toItem: z.ZodOptional<z.ZodNever>;
|
|
5
|
-
}, "strip", z.ZodTypeAny, {
|
|
6
|
-
fromItem?: string | undefined;
|
|
7
|
-
toItem?: undefined;
|
|
8
|
-
}, {
|
|
9
|
-
fromItem?: string | undefined;
|
|
10
|
-
toItem?: undefined;
|
|
11
|
-
}>, z.ZodObject<{
|
|
12
|
-
fromItem: z.ZodOptional<z.ZodNever>;
|
|
13
|
-
toItem: z.ZodOptional<z.ZodString>;
|
|
14
|
-
}, "strip", z.ZodTypeAny, {
|
|
15
|
-
fromItem?: undefined;
|
|
16
|
-
toItem?: string | undefined;
|
|
17
|
-
}, {
|
|
18
|
-
fromItem?: undefined;
|
|
19
|
-
toItem?: string | undefined;
|
|
20
|
-
}>]>, z.ZodObject<{
|
|
21
|
-
count: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodNumber, number, unknown>, number, unknown>, number, unknown>>;
|
|
22
|
-
}, "strip", z.ZodTypeAny, {
|
|
23
|
-
count?: number | undefined;
|
|
24
|
-
}, {
|
|
25
|
-
count?: unknown;
|
|
26
|
-
}>>;
|
|
27
|
-
declare const queryMetaSchema: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
28
|
-
fromItem: z.ZodOptional<z.ZodString>;
|
|
29
|
-
toItem: z.ZodOptional<z.ZodNever>;
|
|
30
|
-
}, "strip", z.ZodTypeAny, {
|
|
31
|
-
fromItem?: string | undefined;
|
|
32
|
-
toItem?: undefined;
|
|
33
|
-
}, {
|
|
34
|
-
fromItem?: string | undefined;
|
|
35
|
-
toItem?: undefined;
|
|
36
|
-
}>, z.ZodObject<{
|
|
37
|
-
fromItem: z.ZodOptional<z.ZodNever>;
|
|
38
|
-
toItem: z.ZodOptional<z.ZodString>;
|
|
39
|
-
}, "strip", z.ZodTypeAny, {
|
|
40
|
-
fromItem?: undefined;
|
|
41
|
-
toItem?: string | undefined;
|
|
42
|
-
}, {
|
|
43
|
-
fromItem?: undefined;
|
|
44
|
-
toItem?: string | undefined;
|
|
45
|
-
}>]>, z.ZodObject<{
|
|
46
|
-
count: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodNumber, number, unknown>, number, unknown>, number, unknown>>;
|
|
47
|
-
}, "strip", z.ZodTypeAny, {
|
|
48
|
-
count?: number | undefined;
|
|
49
|
-
}, {
|
|
50
|
-
count?: unknown;
|
|
51
|
-
}>>;
|
|
52
|
-
export type HttpMeta = z.infer<typeof queryMetaSchema>;
|
|
53
|
-
export declare const paginationMetaSchema: z.ZodObject<{
|
|
54
|
-
itemsInTotal: z.ZodOptional<z.ZodNumber>;
|
|
55
|
-
itemsOnPage: z.ZodNumber;
|
|
56
|
-
nextPage: z.ZodOptional<z.ZodString>;
|
|
57
|
-
prevPage: z.ZodOptional<z.ZodString>;
|
|
58
|
-
}, "strip", z.ZodTypeAny, {
|
|
59
|
-
itemsOnPage: number;
|
|
60
|
-
itemsInTotal?: number | undefined;
|
|
61
|
-
nextPage?: string | undefined;
|
|
62
|
-
prevPage?: string | undefined;
|
|
63
|
-
}, {
|
|
64
|
-
itemsOnPage: number;
|
|
65
|
-
itemsInTotal?: number | undefined;
|
|
66
|
-
nextPage?: string | undefined;
|
|
67
|
-
prevPage?: string | undefined;
|
|
68
|
-
}>;
|
|
69
|
-
export type PaginationMeta = z.infer<typeof paginationMetaSchema>;
|
|
70
|
-
export {};
|
|
71
|
-
//# sourceMappingURL=pagination.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pagination.d.ts","sourceRoot":"","sources":["../../../src/domain/pagination.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,wBAAgB,qBAAqB,CAAC,QAAQ,GAAE,MAAwB;;;;;;;;;;;;;;;;;;;;;;;;IA0BvE;AAED,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;GAA0B,CAAC;AAChD,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAEvD,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;EAK/B,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.paginationMetaSchema = void 0;
|
|
4
|
-
exports.createQueryMetaSchema = createQueryMetaSchema;
|
|
5
|
-
const zod_1 = require("zod");
|
|
6
|
-
const zod_2 = require("../common/zod");
|
|
7
|
-
const pagination_v2_1 = require("./pagination-v2");
|
|
8
|
-
function createQueryMetaSchema(maxItems = pagination_v2_1.maxItemsPerPage) {
|
|
9
|
-
return zod_1.z.intersection(zod_1.z.union([
|
|
10
|
-
zod_1.z.object({
|
|
11
|
-
fromItem: zod_1.z.string().optional(),
|
|
12
|
-
toItem: zod_1.z.never().optional(),
|
|
13
|
-
}),
|
|
14
|
-
zod_1.z.object({
|
|
15
|
-
fromItem: zod_1.z.never().optional(),
|
|
16
|
-
toItem: zod_1.z.string().optional(),
|
|
17
|
-
}),
|
|
18
|
-
], { errorMap: () => ({ message: "Either fromItem or toItem can be provided, but not both" }) }), zod_1.z.object({
|
|
19
|
-
count: zod_2.numericValueSchema
|
|
20
|
-
.refine(count => count >= 0, {
|
|
21
|
-
message: `Count has to be greater than or equal to 0`,
|
|
22
|
-
})
|
|
23
|
-
.refine(count => count <= maxItems, {
|
|
24
|
-
message: `Count has to be less than or equal to ${maxItems}`,
|
|
25
|
-
})
|
|
26
|
-
.optional(),
|
|
27
|
-
}));
|
|
28
|
-
}
|
|
29
|
-
const queryMetaSchema = createQueryMetaSchema();
|
|
30
|
-
exports.paginationMetaSchema = zod_1.z.object({
|
|
31
|
-
itemsInTotal: zod_1.z.number().optional(),
|
|
32
|
-
itemsOnPage: zod_1.z.number(),
|
|
33
|
-
nextPage: zod_1.z.string().optional(),
|
|
34
|
-
prevPage: zod_1.z.string().optional(),
|
|
35
|
-
});
|
|
36
|
-
//# sourceMappingURL=pagination.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pagination.js","sourceRoot":"","sources":["../../../src/domain/pagination.ts"],"names":[],"mappings":";;;AAIA,sDA0BC;AA9BD,6BAAwB;AACxB,uCAAmD;AACnD,mDAAkD;AAElD,SAAgB,qBAAqB,CAAC,WAAmB,+BAAe;IACtE,OAAO,OAAC,CAAC,YAAY,CACnB,OAAC,CAAC,KAAK,CACL;QACE,OAAC,CAAC,MAAM,CAAC;YACP,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;YAC/B,MAAM,EAAE,OAAC,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;SAC7B,CAAC;QACF,OAAC,CAAC,MAAM,CAAC;YACP,QAAQ,EAAE,OAAC,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;YAC9B,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;SAC9B,CAAC;KACH,EACD,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,OAAO,EAAE,yDAAyD,EAAE,CAAC,EAAE,CAC7F,EACD,OAAC,CAAC,MAAM,CAAC;QACP,KAAK,EAAE,wBAAkB;aACtB,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,IAAI,CAAC,EAAE;YAC3B,OAAO,EAAE,4CAA4C;SACtD,CAAC;aACD,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,IAAI,QAAQ,EAAE;YAClC,OAAO,EAAE,yCAAyC,QAAQ,EAAE;SAC7D,CAAC;aACD,QAAQ,EAAE;KACd,CAAC,CACH,CAAC;AACJ,CAAC;AAED,MAAM,eAAe,GAAG,qBAAqB,EAAE,CAAC;AAGnC,QAAA,oBAAoB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC3C,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE;IACvB,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAChC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ssn.test.d.ts","sourceRoot":"","sources":["../../../../../src/domain/patient/__tests__/ssn.test.ts"],"names":[],"mappings":""}
|