candidhealth 0.24.3 → 0.24.5
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/Client.d.ts +3 -3
- package/Client.js +6 -6
- package/api/resources/auth/resources/v2/client/Client.js +1 -1
- package/api/resources/billingNotes/resources/v2/client/Client.js +1 -1
- package/api/resources/commons/types/ProcedureModifier.d.ts +4 -0
- package/api/resources/commons/types/ProcedureModifier.js +1 -0
- package/api/resources/contracts/resources/v2/client/Client.js +5 -5
- package/api/resources/customSchemas/resources/v1/client/Client.d.ts +19 -10
- package/api/resources/customSchemas/resources/v1/client/Client.js +23 -14
- package/api/resources/customSchemas/resources/v1/client/requests/SchemaCreate.d.ts +12 -3
- package/api/resources/customSchemas/resources/v1/client/requests/SchemaUpdate.d.ts +4 -4
- package/api/resources/customSchemas/resources/v1/types/Schema.d.ts +44 -0
- package/api/resources/customSchemas/resources/v1/types/SchemaField.d.ts +31 -0
- package/api/resources/customSchemas/resources/v1/types/SchemaGetMultiResponse.d.ts +23 -0
- package/api/resources/eligibility/resources/v2/client/Client.js +3 -3
- package/api/resources/encounters/resources/v4/client/Client.js +4 -4
- package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
- package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
- package/api/resources/exports/resources/v3/client/Client.js +1 -1
- package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
- package/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
- package/api/resources/financials/types/AccountType.d.ts +2 -1
- package/api/resources/financials/types/AccountType.js +1 -0
- package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
- package/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
- package/api/resources/index.d.ts +1 -1
- package/api/resources/index.js +2 -2
- package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
- package/api/resources/insurancePayments/resources/v1/client/Client.js +5 -5
- package/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
- package/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
- package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
- package/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
- package/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
- package/api/resources/payers/resources/v3/client/Client.js +2 -2
- package/api/resources/preEncounter/resources/common/types/DisabilityStatus.d.ts +8 -0
- package/api/resources/preEncounter/resources/{coverages/resources/v1/resources/coverages/types/CoverageType.js → common/types/DisabilityStatus.js} +4 -4
- package/api/resources/preEncounter/resources/common/types/Ethnicity.d.ts +10 -0
- package/api/resources/preEncounter/resources/common/types/Ethnicity.js +12 -0
- package/api/resources/preEncounter/resources/common/types/Gender.d.ts +6 -3
- package/api/resources/preEncounter/resources/common/types/Gender.js +5 -2
- package/api/resources/preEncounter/resources/common/types/Race.d.ts +15 -0
- package/api/resources/preEncounter/resources/common/types/Race.js +17 -0
- package/api/resources/preEncounter/resources/common/types/Sex.d.ts +10 -0
- package/api/resources/preEncounter/resources/common/types/Sex.js +12 -0
- package/api/resources/preEncounter/resources/common/types/SexualOrientation.d.ts +13 -0
- package/api/resources/preEncounter/resources/common/types/SexualOrientation.js +15 -0
- package/api/resources/preEncounter/resources/common/types/index.d.ts +5 -0
- package/api/resources/preEncounter/resources/common/types/index.js +5 -0
- package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.d.ts +108 -3
- package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +420 -3
- package/api/resources/preEncounter/resources/coverages/resources/v1/client/create.d.ts +22 -0
- package/api/resources/preEncounter/resources/coverages/resources/v1/client/create.js +47 -0
- package/api/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/client → client}/get.d.ts +6 -6
- package/{dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages → api/resources/preEncounter/resources/coverages/resources/v1}/client/get.js +2 -2
- package/{dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages → api/resources/preEncounter/resources/coverages/resources/v1}/client/getHistory.d.ts +7 -7
- package/{dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients → api/resources/preEncounter/resources/coverages/resources/v1}/client/getHistory.js +3 -3
- package/api/resources/preEncounter/resources/coverages/resources/v1/client/getMulti.d.ts +22 -0
- package/api/resources/preEncounter/resources/coverages/resources/v1/client/getMulti.js +47 -0
- package/api/resources/preEncounter/resources/coverages/resources/v1/client/index.d.ts +7 -1
- package/api/resources/preEncounter/resources/coverages/resources/v1/client/index.js +34 -0
- package/{dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages → api/resources/preEncounter/resources/coverages/resources/v1}/client/scan.d.ts +6 -6
- package/{dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients → api/resources/preEncounter/resources/coverages/resources/v1}/client/scan.js +2 -2
- package/api/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/client → client}/update.d.ts +8 -8
- package/api/resources/preEncounter/resources/{patients/resources/v1/resources/patients → coverages/resources/v1}/client/update.js +4 -4
- package/api/resources/preEncounter/resources/coverages/resources/v1/index.d.ts +1 -1
- package/api/resources/preEncounter/resources/coverages/resources/v1/index.js +1 -1
- package/{dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages → api/resources/preEncounter/resources/coverages/resources/v1}/types/Coverage.d.ts +1 -1
- package/{dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages → api/resources/preEncounter/resources/coverages/resources/v1}/types/CoverageId.d.ts +1 -1
- package/api/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/types → types}/InsurancePlan.d.ts +2 -2
- package/{dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages → api/resources/preEncounter/resources/coverages/resources/v1}/types/MutableCoverage.d.ts +1 -1
- package/api/resources/preEncounter/resources/coverages/resources/v1/types/NetworkType.d.ts +82 -0
- package/api/resources/preEncounter/resources/coverages/resources/v1/types/NetworkType.js +27 -0
- package/{dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages → api/resources/preEncounter/resources/coverages/resources/v1}/types/Subscriber.d.ts +1 -1
- package/{dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages → api/resources/preEncounter/resources/coverages/resources/v1}/types/index.d.ts +1 -1
- package/{dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages → api/resources/preEncounter/resources/coverages/resources/v1}/types/index.js +1 -1
- package/api/resources/preEncounter/resources/index.d.ts +2 -2
- package/api/resources/preEncounter/resources/index.js +3 -3
- package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +167 -3
- package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +554 -3
- package/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/client → client}/create.d.ts +7 -7
- package/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/client → client}/create.js +3 -3
- package/{dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients → api/resources/preEncounter/resources/patients/resources/v1}/client/deactivate.d.ts +8 -8
- package/api/resources/preEncounter/resources/patients/resources/v1/client/deactivate.js +69 -0
- package/{dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients → api/resources/preEncounter/resources/patients/resources/v1}/client/get.d.ts +7 -7
- package/{dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients → api/resources/preEncounter/resources/patients/resources/v1}/client/get.js +3 -3
- package/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/client → client}/getHistory.d.ts +7 -7
- package/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/client → client}/getHistory.js +3 -3
- package/api/resources/preEncounter/resources/patients/resources/v1/client/index.d.ts +8 -1
- package/api/resources/preEncounter/resources/patients/resources/v1/client/index.js +35 -0
- package/{dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients → api/resources/preEncounter/resources/patients/resources/v1}/client/scan.d.ts +6 -6
- package/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/client → client}/scan.js +2 -2
- package/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/client → client}/search.d.ts +6 -6
- package/api/resources/preEncounter/resources/patients/resources/v1/client/search.js +47 -0
- package/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/client → client}/update.d.ts +8 -8
- package/{dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients → api/resources/preEncounter/resources/patients/resources/v1}/client/update.js +4 -4
- package/api/resources/preEncounter/resources/patients/resources/v1/index.d.ts +1 -1
- package/api/resources/preEncounter/resources/patients/resources/v1/index.js +1 -1
- package/{dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients → api/resources/preEncounter/resources/patients/resources/v1}/types/Contact.d.ts +1 -1
- package/{dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients → api/resources/preEncounter/resources/patients/resources/v1}/types/ExternalProvider.d.ts +2 -1
- package/api/resources/preEncounter/resources/patients/resources/v1/types/FilingOrder.d.ts +10 -0
- package/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/MutablePatient.d.ts +12 -1
- package/{dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients → api/resources/preEncounter/resources/patients/resources/v1}/types/Patient.d.ts +4 -1
- package/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/PatientId.d.ts +1 -1
- package/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/index.d.ts +1 -0
- package/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/index.js +1 -0
- package/api/resources/serviceFacility/client/Client.js +1 -1
- package/api/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +3 -0
- package/api/resources/tasks/resources/v3/client/Client.js +5 -5
- package/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
- package/dist/Client.d.ts +3 -3
- package/dist/Client.js +6 -6
- package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
- package/dist/api/resources/billingNotes/resources/v2/client/Client.js +1 -1
- package/dist/api/resources/commons/types/ProcedureModifier.d.ts +4 -0
- package/dist/api/resources/commons/types/ProcedureModifier.js +1 -0
- package/dist/api/resources/contracts/resources/v2/client/Client.js +5 -5
- package/dist/api/resources/customSchemas/resources/v1/client/Client.d.ts +19 -10
- package/dist/api/resources/customSchemas/resources/v1/client/Client.js +23 -14
- package/dist/api/resources/customSchemas/resources/v1/client/requests/SchemaCreate.d.ts +12 -3
- package/dist/api/resources/customSchemas/resources/v1/client/requests/SchemaUpdate.d.ts +4 -4
- package/dist/api/resources/customSchemas/resources/v1/types/Schema.d.ts +44 -0
- package/dist/api/resources/customSchemas/resources/v1/types/SchemaField.d.ts +31 -0
- package/dist/api/resources/customSchemas/resources/v1/types/SchemaGetMultiResponse.d.ts +23 -0
- package/dist/api/resources/eligibility/resources/v2/client/Client.js +3 -3
- package/dist/api/resources/encounters/resources/v4/client/Client.js +4 -4
- package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
- package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
- package/dist/api/resources/exports/resources/v3/client/Client.js +1 -1
- package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
- package/dist/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
- package/dist/api/resources/financials/types/AccountType.d.ts +2 -1
- package/dist/api/resources/financials/types/AccountType.js +1 -0
- package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
- package/dist/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
- package/dist/api/resources/index.d.ts +1 -1
- package/dist/api/resources/index.js +2 -2
- package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
- package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +5 -5
- package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
- package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
- package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
- package/dist/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
- package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
- package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
- package/dist/api/resources/preEncounter/resources/common/types/DisabilityStatus.d.ts +8 -0
- package/dist/api/resources/preEncounter/resources/{coverages/resources/v1/resources/coverages/types/CoverageType.js → common/types/DisabilityStatus.js} +4 -4
- package/dist/api/resources/preEncounter/resources/common/types/Ethnicity.d.ts +10 -0
- package/dist/api/resources/preEncounter/resources/common/types/Ethnicity.js +12 -0
- package/dist/api/resources/preEncounter/resources/common/types/Gender.d.ts +6 -3
- package/dist/api/resources/preEncounter/resources/common/types/Gender.js +5 -2
- package/dist/api/resources/preEncounter/resources/common/types/Race.d.ts +15 -0
- package/dist/api/resources/preEncounter/resources/common/types/Race.js +17 -0
- package/dist/api/resources/preEncounter/resources/common/types/Sex.d.ts +10 -0
- package/dist/api/resources/preEncounter/resources/common/types/Sex.js +12 -0
- package/dist/api/resources/preEncounter/resources/common/types/SexualOrientation.d.ts +13 -0
- package/dist/api/resources/preEncounter/resources/common/types/SexualOrientation.js +15 -0
- package/dist/api/resources/preEncounter/resources/common/types/index.d.ts +5 -0
- package/dist/api/resources/preEncounter/resources/common/types/index.js +5 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.d.ts +108 -3
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +420 -3
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/create.d.ts +22 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/create.js +47 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/client → client}/get.d.ts +6 -6
- package/{api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages → dist/api/resources/preEncounter/resources/coverages/resources/v1}/client/get.js +2 -2
- package/{api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages → dist/api/resources/preEncounter/resources/coverages/resources/v1}/client/getHistory.d.ts +7 -7
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/getHistory.js +58 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/getMulti.d.ts +22 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/getMulti.js +47 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/index.d.ts +7 -1
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/index.js +34 -0
- package/{api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages → dist/api/resources/preEncounter/resources/coverages/resources/v1}/client/scan.d.ts +6 -6
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/scan.js +47 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/client → client}/update.d.ts +8 -8
- package/{api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages → dist/api/resources/preEncounter/resources/coverages/resources/v1}/client/update.js +4 -4
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/index.d.ts +1 -1
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/index.js +1 -1
- package/{api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages → dist/api/resources/preEncounter/resources/coverages/resources/v1}/types/Coverage.d.ts +1 -1
- package/{api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages → dist/api/resources/preEncounter/resources/coverages/resources/v1}/types/CoverageId.d.ts +1 -1
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/types → types}/InsurancePlan.d.ts +2 -2
- package/{api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages → dist/api/resources/preEncounter/resources/coverages/resources/v1}/types/MutableCoverage.d.ts +1 -1
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/NetworkType.d.ts +82 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/NetworkType.js +27 -0
- package/{api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages → dist/api/resources/preEncounter/resources/coverages/resources/v1}/types/Subscriber.d.ts +1 -1
- package/dist/{serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages → api/resources/preEncounter/resources/coverages/resources/v1}/types/index.d.ts +1 -1
- package/dist/{serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages → api/resources/preEncounter/resources/coverages/resources/v1}/types/index.js +1 -1
- package/dist/api/resources/preEncounter/resources/index.d.ts +2 -2
- package/dist/api/resources/preEncounter/resources/index.js +3 -3
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +167 -3
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +554 -3
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/client → client}/create.d.ts +7 -7
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/client → client}/create.js +3 -3
- package/{api/resources/preEncounter/resources/patients/resources/v1/resources/patients → dist/api/resources/preEncounter/resources/patients/resources/v1}/client/deactivate.d.ts +8 -8
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/deactivate.js +69 -0
- package/{api/resources/preEncounter/resources/patients/resources/v1/resources/patients → dist/api/resources/preEncounter/resources/patients/resources/v1}/client/get.d.ts +7 -7
- package/{api/resources/preEncounter/resources/patients/resources/v1/resources/patients → dist/api/resources/preEncounter/resources/patients/resources/v1}/client/get.js +3 -3
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/client → client}/getHistory.d.ts +7 -7
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/getHistory.js +58 -0
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/index.d.ts +8 -1
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/index.js +35 -0
- package/{api/resources/preEncounter/resources/patients/resources/v1/resources/patients → dist/api/resources/preEncounter/resources/patients/resources/v1}/client/scan.d.ts +6 -6
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/scan.js +47 -0
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/client → client}/search.d.ts +6 -6
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/search.js +47 -0
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/client → client}/update.d.ts +8 -8
- package/dist/api/resources/preEncounter/resources/{coverages/resources/v1/resources/coverages → patients/resources/v1}/client/update.js +4 -4
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/index.d.ts +1 -1
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/index.js +1 -1
- package/{api/resources/preEncounter/resources/patients/resources/v1/resources/patients → dist/api/resources/preEncounter/resources/patients/resources/v1}/types/Contact.d.ts +1 -1
- package/{api/resources/preEncounter/resources/patients/resources/v1/resources/patients → dist/api/resources/preEncounter/resources/patients/resources/v1}/types/ExternalProvider.d.ts +2 -1
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/FilingOrder.d.ts +10 -0
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/MutablePatient.d.ts +12 -1
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.js +5 -0
- package/{api/resources/preEncounter/resources/patients/resources/v1/resources/patients → dist/api/resources/preEncounter/resources/patients/resources/v1}/types/Patient.d.ts +4 -1
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/Patient.js +5 -0
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/PatientId.d.ts +1 -1
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/index.d.ts +1 -0
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/index.js +1 -0
- package/dist/api/resources/serviceFacility/client/Client.js +1 -1
- package/dist/api/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +3 -0
- package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -5
- package/dist/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
- package/dist/serialization/resources/commons/types/ProcedureModifier.d.ts +1 -1
- package/dist/serialization/resources/commons/types/ProcedureModifier.js +1 -0
- package/dist/serialization/resources/financials/types/AccountType.d.ts +1 -1
- package/dist/serialization/resources/financials/types/AccountType.js +1 -1
- package/dist/serialization/resources/index.d.ts +1 -1
- package/dist/serialization/resources/index.js +2 -2
- package/dist/serialization/resources/preEncounter/resources/common/types/DisabilityStatus.d.ts +10 -0
- package/dist/serialization/resources/preEncounter/resources/common/types/DisabilityStatus.js +31 -0
- package/dist/serialization/resources/preEncounter/resources/common/types/Ethnicity.d.ts +10 -0
- package/dist/serialization/resources/preEncounter/resources/common/types/Ethnicity.js +31 -0
- package/dist/serialization/resources/preEncounter/resources/common/types/Gender.d.ts +1 -1
- package/dist/serialization/resources/preEncounter/resources/common/types/Gender.js +1 -1
- package/dist/serialization/resources/preEncounter/resources/common/types/Race.d.ts +10 -0
- package/dist/serialization/resources/preEncounter/resources/common/types/Race.js +41 -0
- package/dist/serialization/resources/preEncounter/resources/common/types/Sex.d.ts +10 -0
- package/dist/serialization/resources/preEncounter/resources/{coverages/resources/v1/resources/coverages/types/CoverageType.js → common/types/Sex.js} +3 -3
- package/dist/serialization/resources/preEncounter/resources/common/types/SexualOrientation.d.ts +10 -0
- package/dist/serialization/resources/preEncounter/resources/common/types/SexualOrientation.js +31 -0
- package/dist/serialization/resources/preEncounter/resources/common/types/index.d.ts +5 -0
- package/dist/serialization/resources/preEncounter/resources/common/types/index.js +5 -0
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/client/getHistory.d.ts +20 -0
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/client → client}/getHistory.js +4 -4
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/client/getMulti.d.ts +11 -0
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/client → client}/getMulti.js +1 -1
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/client/scan.d.ts +11 -0
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/client → client}/scan.js +1 -1
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/client/update.d.ts +20 -0
- package/dist/serialization/resources/preEncounter/resources/{patients/resources/v1/resources/patients → coverages/resources/v1}/client/update.js +6 -6
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/index.d.ts +2 -1
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/index.js +2 -1
- package/{serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages → dist/serialization/resources/preEncounter/resources/coverages/resources/v1}/types/Coverage.d.ts +5 -5
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/types → types}/Coverage.js +3 -3
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/types → types}/CoverageId.d.ts +3 -3
- package/{serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages → dist/serialization/resources/preEncounter/resources/coverages/resources/v1}/types/CoverageId.js +2 -2
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/types → types}/CoverageStatus.d.ts +3 -3
- package/{serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages → dist/serialization/resources/preEncounter/resources/coverages/resources/v1}/types/CoverageStatus.js +1 -1
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/types → types}/InsurancePlan.d.ts +7 -7
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/types → types}/InsurancePlan.js +5 -5
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/types → types}/MutableCoverage.d.ts +5 -5
- package/{serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages → dist/serialization/resources/preEncounter/resources/coverages/resources/v1}/types/MutableCoverage.js +3 -3
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/NetworkType.d.ts +10 -0
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/NetworkType.js +51 -0
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/types → types}/Subscriber.d.ts +5 -5
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/types → types}/Subscriber.js +3 -3
- package/{serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages → dist/serialization/resources/preEncounter/resources/coverages/resources/v1}/types/index.d.ts +1 -1
- package/{api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages → dist/serialization/resources/preEncounter/resources/coverages/resources/v1}/types/index.js +1 -1
- package/dist/serialization/resources/preEncounter/resources/index.d.ts +2 -2
- package/dist/serialization/resources/preEncounter/resources/index.js +3 -3
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/create.d.ts +15 -0
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/{resources/patients/client → client}/create.js +4 -4
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/deactivate.d.ts +20 -0
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/deactivate.js +67 -0
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/get.d.ts +15 -0
- package/{serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients → dist/serialization/resources/preEncounter/resources/patients/resources/v1}/client/get.js +4 -4
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/getHistory.d.ts +20 -0
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/{resources/patients/client → client}/getHistory.js +4 -4
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/scan.d.ts +11 -0
- package/{serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients → dist/serialization/resources/preEncounter/resources/patients/resources/v1}/client/scan.js +1 -1
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/search.d.ts +11 -0
- package/{serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients → dist/serialization/resources/preEncounter/resources/patients/resources/v1}/client/search.js +1 -1
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/update.d.ts +20 -0
- package/{serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients → dist/serialization/resources/preEncounter/resources/patients/resources/v1}/client/update.js +6 -6
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/index.d.ts +2 -1
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/index.js +2 -1
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/Contact.d.ts +23 -0
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/Contact.js +7 -7
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/ExternalProvenance.d.ts +3 -3
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/ExternalProvenance.js +1 -1
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/ExternalProvider.d.ts +20 -0
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/ExternalProvider.js +6 -5
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/FilingOrder.d.ts +13 -0
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/FilingOrder.js +34 -0
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/MaritalStatus.d.ts +3 -3
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/MaritalStatus.js +1 -1
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +50 -0
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/MutablePatient.js +20 -5
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/Patient.d.ts +6 -5
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/Patient.js +4 -3
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/PatientId.d.ts +3 -3
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/PatientId.js +2 -2
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/index.d.ts +1 -0
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/index.js +1 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +3 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLine.js +3 -0
- package/package.json +1 -1
- package/reference.md +215 -401
- package/serialization/resources/commons/types/ProcedureModifier.d.ts +1 -1
- package/serialization/resources/commons/types/ProcedureModifier.js +1 -0
- package/serialization/resources/financials/types/AccountType.d.ts +1 -1
- package/serialization/resources/financials/types/AccountType.js +1 -1
- package/serialization/resources/index.d.ts +1 -1
- package/serialization/resources/index.js +2 -2
- package/serialization/resources/preEncounter/resources/common/types/DisabilityStatus.d.ts +10 -0
- package/serialization/resources/preEncounter/resources/common/types/DisabilityStatus.js +31 -0
- package/serialization/resources/preEncounter/resources/common/types/Ethnicity.d.ts +10 -0
- package/serialization/resources/preEncounter/resources/common/types/Ethnicity.js +31 -0
- package/serialization/resources/preEncounter/resources/common/types/Gender.d.ts +1 -1
- package/serialization/resources/preEncounter/resources/common/types/Gender.js +1 -1
- package/serialization/resources/preEncounter/resources/common/types/Race.d.ts +10 -0
- package/serialization/resources/preEncounter/resources/common/types/Race.js +41 -0
- package/serialization/resources/preEncounter/resources/common/types/Sex.d.ts +10 -0
- package/serialization/resources/preEncounter/resources/{coverages/resources/v1/resources/coverages/types/CoverageType.js → common/types/Sex.js} +3 -3
- package/serialization/resources/preEncounter/resources/common/types/SexualOrientation.d.ts +10 -0
- package/serialization/resources/preEncounter/resources/common/types/SexualOrientation.js +31 -0
- package/serialization/resources/preEncounter/resources/common/types/index.d.ts +5 -0
- package/serialization/resources/preEncounter/resources/common/types/index.js +5 -0
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/client/getHistory.d.ts +20 -0
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/client → client}/getHistory.js +4 -4
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/client/getMulti.d.ts +11 -0
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/client → client}/getMulti.js +1 -1
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/client/scan.d.ts +11 -0
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/client → client}/scan.js +1 -1
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/client/update.d.ts +20 -0
- package/{dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages → serialization/resources/preEncounter/resources/coverages/resources/v1}/client/update.js +6 -6
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/index.d.ts +2 -1
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/index.js +2 -1
- package/{dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages → serialization/resources/preEncounter/resources/coverages/resources/v1}/types/Coverage.d.ts +5 -5
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/types → types}/Coverage.js +3 -3
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/types → types}/CoverageId.d.ts +3 -3
- package/{dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages → serialization/resources/preEncounter/resources/coverages/resources/v1}/types/CoverageId.js +2 -2
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/types → types}/CoverageStatus.d.ts +3 -3
- package/{dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages → serialization/resources/preEncounter/resources/coverages/resources/v1}/types/CoverageStatus.js +1 -1
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/types → types}/InsurancePlan.d.ts +7 -7
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/types → types}/InsurancePlan.js +5 -5
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/types → types}/MutableCoverage.d.ts +5 -5
- package/{dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages → serialization/resources/preEncounter/resources/coverages/resources/v1}/types/MutableCoverage.js +3 -3
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/NetworkType.d.ts +10 -0
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/NetworkType.js +51 -0
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/types → types}/Subscriber.d.ts +5 -5
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/types → types}/Subscriber.js +3 -3
- package/{api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages → serialization/resources/preEncounter/resources/coverages/resources/v1}/types/index.d.ts +1 -1
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/types → types}/index.js +1 -1
- package/serialization/resources/preEncounter/resources/index.d.ts +2 -2
- package/serialization/resources/preEncounter/resources/index.js +3 -3
- package/serialization/resources/preEncounter/resources/patients/resources/v1/client/create.d.ts +15 -0
- package/serialization/resources/preEncounter/resources/patients/resources/v1/{resources/patients/client → client}/create.js +4 -4
- package/serialization/resources/preEncounter/resources/patients/resources/v1/client/deactivate.d.ts +20 -0
- package/serialization/resources/preEncounter/resources/patients/resources/v1/client/deactivate.js +67 -0
- package/serialization/resources/preEncounter/resources/patients/resources/v1/client/get.d.ts +15 -0
- package/{dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients → serialization/resources/preEncounter/resources/patients/resources/v1}/client/get.js +4 -4
- package/serialization/resources/preEncounter/resources/patients/resources/v1/client/getHistory.d.ts +20 -0
- package/serialization/resources/preEncounter/resources/patients/resources/v1/{resources/patients/client → client}/getHistory.js +4 -4
- package/serialization/resources/preEncounter/resources/patients/resources/v1/client/scan.d.ts +11 -0
- package/{dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients → serialization/resources/preEncounter/resources/patients/resources/v1}/client/scan.js +1 -1
- package/serialization/resources/preEncounter/resources/patients/resources/v1/client/search.d.ts +11 -0
- package/{dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients → serialization/resources/preEncounter/resources/patients/resources/v1}/client/search.js +1 -1
- package/serialization/resources/preEncounter/resources/patients/resources/v1/client/update.d.ts +20 -0
- package/serialization/resources/preEncounter/resources/{coverages/resources/v1/resources/coverages → patients/resources/v1}/client/update.js +6 -6
- package/serialization/resources/preEncounter/resources/patients/resources/v1/index.d.ts +2 -1
- package/serialization/resources/preEncounter/resources/patients/resources/v1/index.js +2 -1
- package/serialization/resources/preEncounter/resources/patients/resources/v1/types/Contact.d.ts +23 -0
- package/serialization/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/Contact.js +7 -7
- package/serialization/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/ExternalProvenance.d.ts +3 -3
- package/serialization/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/ExternalProvenance.js +1 -1
- package/serialization/resources/preEncounter/resources/patients/resources/v1/types/ExternalProvider.d.ts +20 -0
- package/serialization/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/ExternalProvider.js +6 -5
- package/serialization/resources/preEncounter/resources/patients/resources/v1/types/FilingOrder.d.ts +13 -0
- package/serialization/resources/preEncounter/resources/patients/resources/v1/types/FilingOrder.js +34 -0
- package/serialization/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/MaritalStatus.d.ts +3 -3
- package/serialization/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/MaritalStatus.js +1 -1
- package/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +50 -0
- package/serialization/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/MutablePatient.js +20 -5
- package/serialization/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/Patient.d.ts +6 -5
- package/serialization/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/Patient.js +4 -3
- package/serialization/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/PatientId.d.ts +3 -3
- package/serialization/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/PatientId.js +2 -2
- package/serialization/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/index.d.ts +1 -0
- package/serialization/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/index.js +1 -0
- package/serialization/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +3 -0
- package/serialization/resources/serviceLines/resources/v2/types/ServiceLine.js +3 -0
- package/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/Client.d.ts +0 -147
- package/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/Client.js +0 -451
- package/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/create.d.ts +0 -22
- package/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/create.js +0 -47
- package/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/getHistory.js +0 -58
- package/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/getMulti.d.ts +0 -22
- package/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/getMulti.js +0 -47
- package/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/index.d.ts +0 -7
- package/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/index.js +0 -36
- package/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/scan.js +0 -47
- package/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/index.d.ts +0 -2
- package/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/index.js +0 -18
- package/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/CoverageType.d.ts +0 -8
- package/api/resources/preEncounter/resources/coverages/resources/v1/resources/index.d.ts +0 -3
- package/api/resources/preEncounter/resources/coverages/resources/v1/resources/index.js +0 -32
- package/api/resources/preEncounter/resources/patients/resources/v1/resources/index.d.ts +0 -3
- package/api/resources/preEncounter/resources/patients/resources/v1/resources/index.js +0 -32
- package/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/Client.d.ts +0 -338
- package/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/Client.js +0 -716
- package/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/deactivate.js +0 -69
- package/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/index.d.ts +0 -8
- package/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/index.js +0 -37
- package/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/search.js +0 -47
- package/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/index.d.ts +0 -2
- package/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/index.js +0 -18
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/Client.d.ts +0 -147
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/Client.js +0 -451
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/create.d.ts +0 -22
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/create.js +0 -47
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/getHistory.js +0 -58
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/getMulti.d.ts +0 -22
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/getMulti.js +0 -47
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/index.d.ts +0 -7
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/index.js +0 -36
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/scan.js +0 -47
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/index.d.ts +0 -2
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/index.js +0 -18
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/CoverageType.d.ts +0 -8
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/index.d.ts +0 -3
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/index.js +0 -32
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/index.d.ts +0 -3
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/index.js +0 -32
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/Client.d.ts +0 -338
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/Client.js +0 -716
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/deactivate.js +0 -69
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/index.d.ts +0 -8
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/index.js +0 -37
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/search.js +0 -47
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/index.d.ts +0 -2
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/index.js +0 -18
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/getHistory.d.ts +0 -20
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/getMulti.d.ts +0 -11
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/scan.d.ts +0 -11
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/update.d.ts +0 -20
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/index.d.ts +0 -2
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/index.js +0 -18
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/CoverageType.d.ts +0 -10
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/index.d.ts +0 -2
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/index.js +0 -31
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/index.d.ts +0 -2
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/index.js +0 -31
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/create.d.ts +0 -15
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/deactivate.d.ts +0 -20
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/deactivate.js +0 -67
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/get.d.ts +0 -15
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/getHistory.d.ts +0 -20
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/scan.d.ts +0 -11
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/search.d.ts +0 -11
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/update.d.ts +0 -20
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/index.d.ts +0 -2
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/index.js +0 -18
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/Contact.d.ts +0 -23
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/ExternalProvider.d.ts +0 -19
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/MutablePatient.d.ts +0 -35
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/getHistory.d.ts +0 -20
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/getMulti.d.ts +0 -11
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/scan.d.ts +0 -11
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/update.d.ts +0 -20
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/index.d.ts +0 -2
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/index.js +0 -18
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/CoverageType.d.ts +0 -10
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/index.d.ts +0 -2
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/index.js +0 -31
- package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/index.d.ts +0 -2
- package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/index.js +0 -31
- package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/create.d.ts +0 -15
- package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/deactivate.d.ts +0 -20
- package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/deactivate.js +0 -67
- package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/get.d.ts +0 -15
- package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/getHistory.d.ts +0 -20
- package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/scan.d.ts +0 -11
- package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/search.d.ts +0 -11
- package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/update.d.ts +0 -20
- package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/index.d.ts +0 -2
- package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/index.js +0 -18
- package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/Contact.d.ts +0 -23
- package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/ExternalProvider.d.ts +0 -19
- package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/MutablePatient.d.ts +0 -35
- /package/api/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/client → client}/requests/CoverageScanRequest.d.ts +0 -0
- /package/api/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/client → client}/requests/CoverageScanRequest.js +0 -0
- /package/api/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/client → client}/requests/GetAllCoveragesRequest.d.ts +0 -0
- /package/api/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/client → client}/requests/GetAllCoveragesRequest.js +0 -0
- /package/api/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/client → client}/requests/index.d.ts +0 -0
- /package/api/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/client → client}/requests/index.js +0 -0
- /package/api/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/types → types}/Coverage.js +0 -0
- /package/api/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/types → types}/CoverageId.js +0 -0
- /package/api/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/types → types}/CoverageStatus.d.ts +0 -0
- /package/api/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/types → types}/CoverageStatus.js +0 -0
- /package/api/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/types → types}/InsurancePlan.js +0 -0
- /package/api/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/types → types}/MutableCoverage.js +0 -0
- /package/api/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/types → types}/Subscriber.js +0 -0
- /package/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/client → client}/requests/PatientScanRequest.d.ts +0 -0
- /package/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/client → client}/requests/PatientScanRequest.js +0 -0
- /package/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/client → client}/requests/PatientsSearchRequest.d.ts +0 -0
- /package/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/client → client}/requests/PatientsSearchRequest.js +0 -0
- /package/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/client → client}/requests/index.d.ts +0 -0
- /package/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/client → client}/requests/index.js +0 -0
- /package/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/Contact.js +0 -0
- /package/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/ExternalProvenance.d.ts +0 -0
- /package/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/ExternalProvenance.js +0 -0
- /package/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/ExternalProvider.js +0 -0
- /package/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types/MutablePatient.js → types/FilingOrder.js} +0 -0
- /package/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/MaritalStatus.d.ts +0 -0
- /package/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/MaritalStatus.js +0 -0
- /package/{dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients → api/resources/preEncounter/resources/patients/resources/v1}/types/MutablePatient.js +0 -0
- /package/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/Patient.js +0 -0
- /package/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/PatientId.js +0 -0
- /package/dist/api/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/client → client}/requests/CoverageScanRequest.d.ts +0 -0
- /package/dist/api/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/client → client}/requests/CoverageScanRequest.js +0 -0
- /package/dist/api/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/client → client}/requests/GetAllCoveragesRequest.d.ts +0 -0
- /package/dist/api/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/client → client}/requests/GetAllCoveragesRequest.js +0 -0
- /package/dist/api/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/client → client}/requests/index.d.ts +0 -0
- /package/dist/api/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/client → client}/requests/index.js +0 -0
- /package/dist/api/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/types → types}/Coverage.js +0 -0
- /package/dist/api/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/types → types}/CoverageId.js +0 -0
- /package/dist/api/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/types → types}/CoverageStatus.d.ts +0 -0
- /package/dist/api/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/types → types}/CoverageStatus.js +0 -0
- /package/dist/api/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/types → types}/InsurancePlan.js +0 -0
- /package/dist/api/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/types → types}/MutableCoverage.js +0 -0
- /package/dist/api/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/types → types}/Subscriber.js +0 -0
- /package/dist/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/client → client}/requests/PatientScanRequest.d.ts +0 -0
- /package/dist/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/client → client}/requests/PatientScanRequest.js +0 -0
- /package/dist/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/client → client}/requests/PatientsSearchRequest.d.ts +0 -0
- /package/dist/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/client → client}/requests/PatientsSearchRequest.js +0 -0
- /package/dist/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/client → client}/requests/index.d.ts +0 -0
- /package/dist/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/client → client}/requests/index.js +0 -0
- /package/dist/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/Contact.js +0 -0
- /package/dist/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/ExternalProvenance.d.ts +0 -0
- /package/dist/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/ExternalProvenance.js +0 -0
- /package/dist/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/ExternalProvider.js +0 -0
- /package/dist/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types/Patient.js → types/FilingOrder.js} +0 -0
- /package/dist/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/MaritalStatus.d.ts +0 -0
- /package/dist/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/MaritalStatus.js +0 -0
- /package/dist/api/resources/preEncounter/resources/patients/resources/v1/{resources/patients/types → types}/PatientId.js +0 -0
- /package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/client → client}/index.d.ts +0 -0
- /package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/client → client}/index.js +0 -0
- /package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/{resources/patients/client → client}/index.d.ts +0 -0
- /package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/{resources/patients/client → client}/index.js +0 -0
- /package/serialization/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/client → client}/index.d.ts +0 -0
- /package/serialization/resources/preEncounter/resources/coverages/resources/v1/{resources/coverages/client → client}/index.js +0 -0
- /package/serialization/resources/preEncounter/resources/patients/resources/v1/{resources/patients/client → client}/index.d.ts +0 -0
- /package/serialization/resources/preEncounter/resources/patients/resources/v1/{resources/patients/client → client}/index.js +0 -0
|
@@ -1,716 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
-
*/
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
-
}) : function(o, v) {
|
|
19
|
-
o["default"] = v;
|
|
20
|
-
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
-
if (mod && mod.__esModule) return mod;
|
|
23
|
-
var result = {};
|
|
24
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
-
__setModuleDefault(result, mod);
|
|
26
|
-
return result;
|
|
27
|
-
};
|
|
28
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
29
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
30
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
31
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
32
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
33
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
34
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
35
|
-
});
|
|
36
|
-
};
|
|
37
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
38
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
39
|
-
};
|
|
40
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41
|
-
exports.Patients = void 0;
|
|
42
|
-
const environments = __importStar(require("../../../../../../../../../../environments"));
|
|
43
|
-
const core = __importStar(require("../../../../../../../../../../core"));
|
|
44
|
-
const CandidApi = __importStar(require("../../../../../../../../../index"));
|
|
45
|
-
const serializers = __importStar(require("../../../../../../../../../../serialization/index"));
|
|
46
|
-
const url_join_1 = __importDefault(require("url-join"));
|
|
47
|
-
class Patients {
|
|
48
|
-
constructor(_options = {}) {
|
|
49
|
-
this._options = _options;
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* Adds a patient. VersionConflictError is returned when the patient's external ID is already in use.
|
|
53
|
-
*
|
|
54
|
-
* @param {CandidApi.preEncounter.patients.v1.MutablePatient} request
|
|
55
|
-
* @param {Patients.RequestOptions} requestOptions - Request-specific configuration.
|
|
56
|
-
*
|
|
57
|
-
* @example
|
|
58
|
-
* await client.preEncounter.patients.v1.patients.create({
|
|
59
|
-
* name: {
|
|
60
|
-
* family: "string",
|
|
61
|
-
* given: ["string"],
|
|
62
|
-
* use: CandidApi.preEncounter.NameUse.Usual,
|
|
63
|
-
* period: {}
|
|
64
|
-
* },
|
|
65
|
-
* otherNames: [{
|
|
66
|
-
* family: "string",
|
|
67
|
-
* given: ["string"],
|
|
68
|
-
* use: CandidApi.preEncounter.NameUse.Usual,
|
|
69
|
-
* period: {}
|
|
70
|
-
* }],
|
|
71
|
-
* gender: CandidApi.preEncounter.Gender.Female,
|
|
72
|
-
* birthDate: "2023-01-15",
|
|
73
|
-
* maritalStatus: CandidApi.preEncounter.patients.v1.MaritalStatus.Annulled,
|
|
74
|
-
* deceased: new Date("2024-01-15T09:30:00.000Z"),
|
|
75
|
-
* multipleBirth: 1,
|
|
76
|
-
* primaryAddress: {
|
|
77
|
-
* use: CandidApi.preEncounter.AddressUse.Home,
|
|
78
|
-
* line: ["string"],
|
|
79
|
-
* city: "string",
|
|
80
|
-
* state: "string",
|
|
81
|
-
* postalCode: "string",
|
|
82
|
-
* country: "string",
|
|
83
|
-
* period: {}
|
|
84
|
-
* },
|
|
85
|
-
* otherAddresses: [{
|
|
86
|
-
* use: CandidApi.preEncounter.AddressUse.Home,
|
|
87
|
-
* line: ["string"],
|
|
88
|
-
* city: "string",
|
|
89
|
-
* state: "string",
|
|
90
|
-
* postalCode: "string",
|
|
91
|
-
* country: "string",
|
|
92
|
-
* period: {}
|
|
93
|
-
* }],
|
|
94
|
-
* primaryTelecom: {
|
|
95
|
-
* value: "string",
|
|
96
|
-
* use: CandidApi.preEncounter.ContactPointUse.Home,
|
|
97
|
-
* period: {
|
|
98
|
-
* start: "2023-01-15",
|
|
99
|
-
* end: "2023-01-15"
|
|
100
|
-
* }
|
|
101
|
-
* },
|
|
102
|
-
* otherTelecoms: [{
|
|
103
|
-
* value: "string",
|
|
104
|
-
* use: CandidApi.preEncounter.ContactPointUse.Home,
|
|
105
|
-
* period: {
|
|
106
|
-
* start: "2023-01-15",
|
|
107
|
-
* end: "2023-01-15"
|
|
108
|
-
* }
|
|
109
|
-
* }],
|
|
110
|
-
* photo: "string",
|
|
111
|
-
* language: "string",
|
|
112
|
-
* externalProvenance: {
|
|
113
|
-
* externalId: "string",
|
|
114
|
-
* systemName: "string"
|
|
115
|
-
* },
|
|
116
|
-
* contacts: [{
|
|
117
|
-
* relationship: [CandidApi.preEncounter.Relationship.Self],
|
|
118
|
-
* name: {
|
|
119
|
-
* family: "string",
|
|
120
|
-
* given: ["string"],
|
|
121
|
-
* use: CandidApi.preEncounter.NameUse.Usual,
|
|
122
|
-
* period: {}
|
|
123
|
-
* },
|
|
124
|
-
* gender: CandidApi.preEncounter.Gender.Female,
|
|
125
|
-
* telecoms: [{
|
|
126
|
-
* value: "string",
|
|
127
|
-
* use: CandidApi.preEncounter.ContactPointUse.Home,
|
|
128
|
-
* period: {
|
|
129
|
-
* start: "2023-01-15",
|
|
130
|
-
* end: "2023-01-15"
|
|
131
|
-
* }
|
|
132
|
-
* }],
|
|
133
|
-
* addresses: [{
|
|
134
|
-
* use: CandidApi.preEncounter.AddressUse.Home,
|
|
135
|
-
* line: ["string"],
|
|
136
|
-
* city: "string",
|
|
137
|
-
* state: "string",
|
|
138
|
-
* postalCode: "string",
|
|
139
|
-
* country: "string",
|
|
140
|
-
* period: {}
|
|
141
|
-
* }],
|
|
142
|
-
* period: {
|
|
143
|
-
* start: "2023-01-15",
|
|
144
|
-
* end: "2023-01-15"
|
|
145
|
-
* }
|
|
146
|
-
* }],
|
|
147
|
-
* generalPractitioners: [{
|
|
148
|
-
* name: {
|
|
149
|
-
* family: "string",
|
|
150
|
-
* given: ["string"],
|
|
151
|
-
* use: CandidApi.preEncounter.NameUse.Usual,
|
|
152
|
-
* period: {}
|
|
153
|
-
* },
|
|
154
|
-
* telecoms: [{
|
|
155
|
-
* value: "string",
|
|
156
|
-
* use: CandidApi.preEncounter.ContactPointUse.Home,
|
|
157
|
-
* period: {
|
|
158
|
-
* start: "2023-01-15",
|
|
159
|
-
* end: "2023-01-15"
|
|
160
|
-
* }
|
|
161
|
-
* }],
|
|
162
|
-
* addresses: [{
|
|
163
|
-
* use: CandidApi.preEncounter.AddressUse.Home,
|
|
164
|
-
* line: ["string"],
|
|
165
|
-
* city: "string",
|
|
166
|
-
* state: "string",
|
|
167
|
-
* postalCode: "string",
|
|
168
|
-
* country: "string",
|
|
169
|
-
* period: {}
|
|
170
|
-
* }],
|
|
171
|
-
* period: {
|
|
172
|
-
* start: "2023-01-15",
|
|
173
|
-
* end: "2023-01-15"
|
|
174
|
-
* }
|
|
175
|
-
* }]
|
|
176
|
-
* })
|
|
177
|
-
*/
|
|
178
|
-
create(request, requestOptions) {
|
|
179
|
-
var _a, _b;
|
|
180
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
181
|
-
const _response = yield core.fetcher({
|
|
182
|
-
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
|
|
183
|
-
.preEncounter, "/patients/v1"),
|
|
184
|
-
method: "POST",
|
|
185
|
-
headers: {
|
|
186
|
-
Authorization: yield this._getAuthorizationHeader(),
|
|
187
|
-
"X-Fern-Language": "JavaScript",
|
|
188
|
-
"X-Fern-SDK-Name": "candidhealth",
|
|
189
|
-
"X-Fern-SDK-Version": "0.24.3",
|
|
190
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
191
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
192
|
-
},
|
|
193
|
-
contentType: "application/json",
|
|
194
|
-
requestType: "json",
|
|
195
|
-
body: serializers.preEncounter.patients.v1.MutablePatient.jsonOrThrow(request, {
|
|
196
|
-
unrecognizedObjectKeys: "strip",
|
|
197
|
-
}),
|
|
198
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
199
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
200
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
201
|
-
});
|
|
202
|
-
if (_response.ok) {
|
|
203
|
-
return {
|
|
204
|
-
ok: true,
|
|
205
|
-
body: serializers.preEncounter.patients.v1.Patient.parseOrThrow(_response.body, {
|
|
206
|
-
unrecognizedObjectKeys: "passthrough",
|
|
207
|
-
allowUnrecognizedUnionMembers: true,
|
|
208
|
-
allowUnrecognizedEnumValues: true,
|
|
209
|
-
breadcrumbsPrefix: ["response"],
|
|
210
|
-
}),
|
|
211
|
-
};
|
|
212
|
-
}
|
|
213
|
-
if (_response.error.reason === "status-code") {
|
|
214
|
-
switch ((_b = _response.error.body) === null || _b === void 0 ? void 0 : _b.errorName) {
|
|
215
|
-
case "VersionConflictError":
|
|
216
|
-
return {
|
|
217
|
-
ok: false,
|
|
218
|
-
error: serializers.preEncounter.patients.v1.patients.create.Error.parseOrThrow(_response.error.body, {
|
|
219
|
-
unrecognizedObjectKeys: "passthrough",
|
|
220
|
-
allowUnrecognizedUnionMembers: true,
|
|
221
|
-
allowUnrecognizedEnumValues: true,
|
|
222
|
-
breadcrumbsPrefix: ["response"],
|
|
223
|
-
}),
|
|
224
|
-
};
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
return {
|
|
228
|
-
ok: false,
|
|
229
|
-
error: CandidApi.preEncounter.patients.v1.patients.create.Error._unknown(_response.error),
|
|
230
|
-
};
|
|
231
|
-
});
|
|
232
|
-
}
|
|
233
|
-
/**
|
|
234
|
-
* Gets a patient.
|
|
235
|
-
*
|
|
236
|
-
* @param {CandidApi.preEncounter.patients.v1.PatientId} id
|
|
237
|
-
* @param {Patients.RequestOptions} requestOptions - Request-specific configuration.
|
|
238
|
-
*
|
|
239
|
-
* @example
|
|
240
|
-
* await client.preEncounter.patients.v1.patients.get(CandidApi.preEncounter.patients.v1.PatientId("string"))
|
|
241
|
-
*/
|
|
242
|
-
get(id, requestOptions) {
|
|
243
|
-
var _a, _b;
|
|
244
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
245
|
-
const _response = yield core.fetcher({
|
|
246
|
-
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
|
|
247
|
-
.preEncounter, `/patients/v1/${encodeURIComponent(serializers.preEncounter.patients.v1.PatientId.jsonOrThrow(id))}`),
|
|
248
|
-
method: "GET",
|
|
249
|
-
headers: {
|
|
250
|
-
Authorization: yield this._getAuthorizationHeader(),
|
|
251
|
-
"X-Fern-Language": "JavaScript",
|
|
252
|
-
"X-Fern-SDK-Name": "candidhealth",
|
|
253
|
-
"X-Fern-SDK-Version": "0.24.3",
|
|
254
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
255
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
256
|
-
},
|
|
257
|
-
contentType: "application/json",
|
|
258
|
-
requestType: "json",
|
|
259
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
260
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
261
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
262
|
-
});
|
|
263
|
-
if (_response.ok) {
|
|
264
|
-
return {
|
|
265
|
-
ok: true,
|
|
266
|
-
body: serializers.preEncounter.patients.v1.Patient.parseOrThrow(_response.body, {
|
|
267
|
-
unrecognizedObjectKeys: "passthrough",
|
|
268
|
-
allowUnrecognizedUnionMembers: true,
|
|
269
|
-
allowUnrecognizedEnumValues: true,
|
|
270
|
-
breadcrumbsPrefix: ["response"],
|
|
271
|
-
}),
|
|
272
|
-
};
|
|
273
|
-
}
|
|
274
|
-
if (_response.error.reason === "status-code") {
|
|
275
|
-
switch ((_b = _response.error.body) === null || _b === void 0 ? void 0 : _b.errorName) {
|
|
276
|
-
case "NotFoundError":
|
|
277
|
-
return {
|
|
278
|
-
ok: false,
|
|
279
|
-
error: serializers.preEncounter.patients.v1.patients.get.Error.parseOrThrow(_response.error.body, {
|
|
280
|
-
unrecognizedObjectKeys: "passthrough",
|
|
281
|
-
allowUnrecognizedUnionMembers: true,
|
|
282
|
-
allowUnrecognizedEnumValues: true,
|
|
283
|
-
breadcrumbsPrefix: ["response"],
|
|
284
|
-
}),
|
|
285
|
-
};
|
|
286
|
-
}
|
|
287
|
-
}
|
|
288
|
-
return {
|
|
289
|
-
ok: false,
|
|
290
|
-
error: CandidApi.preEncounter.patients.v1.patients.get.Error._unknown(_response.error),
|
|
291
|
-
};
|
|
292
|
-
});
|
|
293
|
-
}
|
|
294
|
-
/**
|
|
295
|
-
* Gets a patient along with it's full history. The return list is ordered by version ascending.
|
|
296
|
-
*
|
|
297
|
-
* @param {CandidApi.preEncounter.patients.v1.PatientId} id
|
|
298
|
-
* @param {Patients.RequestOptions} requestOptions - Request-specific configuration.
|
|
299
|
-
*
|
|
300
|
-
* @example
|
|
301
|
-
* await client.preEncounter.patients.v1.patients.getHistory(CandidApi.preEncounter.patients.v1.PatientId("string"))
|
|
302
|
-
*/
|
|
303
|
-
getHistory(id, requestOptions) {
|
|
304
|
-
var _a, _b;
|
|
305
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
306
|
-
const _response = yield core.fetcher({
|
|
307
|
-
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
|
|
308
|
-
.preEncounter, `/patients/v1/${encodeURIComponent(serializers.preEncounter.patients.v1.PatientId.jsonOrThrow(id))}/history`),
|
|
309
|
-
method: "GET",
|
|
310
|
-
headers: {
|
|
311
|
-
Authorization: yield this._getAuthorizationHeader(),
|
|
312
|
-
"X-Fern-Language": "JavaScript",
|
|
313
|
-
"X-Fern-SDK-Name": "candidhealth",
|
|
314
|
-
"X-Fern-SDK-Version": "0.24.3",
|
|
315
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
316
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
317
|
-
},
|
|
318
|
-
contentType: "application/json",
|
|
319
|
-
requestType: "json",
|
|
320
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
321
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
322
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
323
|
-
});
|
|
324
|
-
if (_response.ok) {
|
|
325
|
-
return {
|
|
326
|
-
ok: true,
|
|
327
|
-
body: serializers.preEncounter.patients.v1.patients.getHistory.Response.parseOrThrow(_response.body, {
|
|
328
|
-
unrecognizedObjectKeys: "passthrough",
|
|
329
|
-
allowUnrecognizedUnionMembers: true,
|
|
330
|
-
allowUnrecognizedEnumValues: true,
|
|
331
|
-
breadcrumbsPrefix: ["response"],
|
|
332
|
-
}),
|
|
333
|
-
};
|
|
334
|
-
}
|
|
335
|
-
if (_response.error.reason === "status-code") {
|
|
336
|
-
switch ((_b = _response.error.body) === null || _b === void 0 ? void 0 : _b.errorName) {
|
|
337
|
-
case "NotFoundError":
|
|
338
|
-
return {
|
|
339
|
-
ok: false,
|
|
340
|
-
error: serializers.preEncounter.patients.v1.patients.getHistory.Error.parseOrThrow(_response.error.body, {
|
|
341
|
-
unrecognizedObjectKeys: "passthrough",
|
|
342
|
-
allowUnrecognizedUnionMembers: true,
|
|
343
|
-
allowUnrecognizedEnumValues: true,
|
|
344
|
-
breadcrumbsPrefix: ["response"],
|
|
345
|
-
}),
|
|
346
|
-
};
|
|
347
|
-
}
|
|
348
|
-
}
|
|
349
|
-
return {
|
|
350
|
-
ok: false,
|
|
351
|
-
error: CandidApi.preEncounter.patients.v1.patients.getHistory.Error._unknown(_response.error),
|
|
352
|
-
};
|
|
353
|
-
});
|
|
354
|
-
}
|
|
355
|
-
/**
|
|
356
|
-
* Updates a patient. The path must contain the most recent version to prevent races. Updating historic versions is not supported.
|
|
357
|
-
*
|
|
358
|
-
* @param {CandidApi.preEncounter.patients.v1.PatientId} id
|
|
359
|
-
* @param {number} version
|
|
360
|
-
* @param {CandidApi.preEncounter.patients.v1.MutablePatient} request
|
|
361
|
-
* @param {Patients.RequestOptions} requestOptions - Request-specific configuration.
|
|
362
|
-
*
|
|
363
|
-
* @example
|
|
364
|
-
* await client.preEncounter.patients.v1.patients.update(CandidApi.preEncounter.patients.v1.PatientId("string"), 1, {
|
|
365
|
-
* name: {
|
|
366
|
-
* family: "string",
|
|
367
|
-
* given: ["string"],
|
|
368
|
-
* use: CandidApi.preEncounter.NameUse.Usual,
|
|
369
|
-
* period: {}
|
|
370
|
-
* },
|
|
371
|
-
* otherNames: [{
|
|
372
|
-
* family: "string",
|
|
373
|
-
* given: ["string"],
|
|
374
|
-
* use: CandidApi.preEncounter.NameUse.Usual,
|
|
375
|
-
* period: {}
|
|
376
|
-
* }],
|
|
377
|
-
* gender: CandidApi.preEncounter.Gender.Female,
|
|
378
|
-
* birthDate: "2023-01-15",
|
|
379
|
-
* maritalStatus: CandidApi.preEncounter.patients.v1.MaritalStatus.Annulled,
|
|
380
|
-
* deceased: new Date("2024-01-15T09:30:00.000Z"),
|
|
381
|
-
* multipleBirth: 1,
|
|
382
|
-
* primaryAddress: {
|
|
383
|
-
* use: CandidApi.preEncounter.AddressUse.Home,
|
|
384
|
-
* line: ["string"],
|
|
385
|
-
* city: "string",
|
|
386
|
-
* state: "string",
|
|
387
|
-
* postalCode: "string",
|
|
388
|
-
* country: "string",
|
|
389
|
-
* period: {}
|
|
390
|
-
* },
|
|
391
|
-
* otherAddresses: [{
|
|
392
|
-
* use: CandidApi.preEncounter.AddressUse.Home,
|
|
393
|
-
* line: ["string"],
|
|
394
|
-
* city: "string",
|
|
395
|
-
* state: "string",
|
|
396
|
-
* postalCode: "string",
|
|
397
|
-
* country: "string",
|
|
398
|
-
* period: {}
|
|
399
|
-
* }],
|
|
400
|
-
* primaryTelecom: {
|
|
401
|
-
* value: "string",
|
|
402
|
-
* use: CandidApi.preEncounter.ContactPointUse.Home,
|
|
403
|
-
* period: {
|
|
404
|
-
* start: "2023-01-15",
|
|
405
|
-
* end: "2023-01-15"
|
|
406
|
-
* }
|
|
407
|
-
* },
|
|
408
|
-
* otherTelecoms: [{
|
|
409
|
-
* value: "string",
|
|
410
|
-
* use: CandidApi.preEncounter.ContactPointUse.Home,
|
|
411
|
-
* period: {
|
|
412
|
-
* start: "2023-01-15",
|
|
413
|
-
* end: "2023-01-15"
|
|
414
|
-
* }
|
|
415
|
-
* }],
|
|
416
|
-
* photo: "string",
|
|
417
|
-
* language: "string",
|
|
418
|
-
* externalProvenance: {
|
|
419
|
-
* externalId: "string",
|
|
420
|
-
* systemName: "string"
|
|
421
|
-
* },
|
|
422
|
-
* contacts: [{
|
|
423
|
-
* relationship: [CandidApi.preEncounter.Relationship.Self],
|
|
424
|
-
* name: {
|
|
425
|
-
* family: "string",
|
|
426
|
-
* given: ["string"],
|
|
427
|
-
* use: CandidApi.preEncounter.NameUse.Usual,
|
|
428
|
-
* period: {}
|
|
429
|
-
* },
|
|
430
|
-
* gender: CandidApi.preEncounter.Gender.Female,
|
|
431
|
-
* telecoms: [{
|
|
432
|
-
* value: "string",
|
|
433
|
-
* use: CandidApi.preEncounter.ContactPointUse.Home,
|
|
434
|
-
* period: {
|
|
435
|
-
* start: "2023-01-15",
|
|
436
|
-
* end: "2023-01-15"
|
|
437
|
-
* }
|
|
438
|
-
* }],
|
|
439
|
-
* addresses: [{
|
|
440
|
-
* use: CandidApi.preEncounter.AddressUse.Home,
|
|
441
|
-
* line: ["string"],
|
|
442
|
-
* city: "string",
|
|
443
|
-
* state: "string",
|
|
444
|
-
* postalCode: "string",
|
|
445
|
-
* country: "string",
|
|
446
|
-
* period: {}
|
|
447
|
-
* }],
|
|
448
|
-
* period: {
|
|
449
|
-
* start: "2023-01-15",
|
|
450
|
-
* end: "2023-01-15"
|
|
451
|
-
* }
|
|
452
|
-
* }],
|
|
453
|
-
* generalPractitioners: [{
|
|
454
|
-
* name: {
|
|
455
|
-
* family: "string",
|
|
456
|
-
* given: ["string"],
|
|
457
|
-
* use: CandidApi.preEncounter.NameUse.Usual,
|
|
458
|
-
* period: {}
|
|
459
|
-
* },
|
|
460
|
-
* telecoms: [{
|
|
461
|
-
* value: "string",
|
|
462
|
-
* use: CandidApi.preEncounter.ContactPointUse.Home,
|
|
463
|
-
* period: {
|
|
464
|
-
* start: "2023-01-15",
|
|
465
|
-
* end: "2023-01-15"
|
|
466
|
-
* }
|
|
467
|
-
* }],
|
|
468
|
-
* addresses: [{
|
|
469
|
-
* use: CandidApi.preEncounter.AddressUse.Home,
|
|
470
|
-
* line: ["string"],
|
|
471
|
-
* city: "string",
|
|
472
|
-
* state: "string",
|
|
473
|
-
* postalCode: "string",
|
|
474
|
-
* country: "string",
|
|
475
|
-
* period: {}
|
|
476
|
-
* }],
|
|
477
|
-
* period: {
|
|
478
|
-
* start: "2023-01-15",
|
|
479
|
-
* end: "2023-01-15"
|
|
480
|
-
* }
|
|
481
|
-
* }]
|
|
482
|
-
* })
|
|
483
|
-
*/
|
|
484
|
-
update(id, version, request, requestOptions) {
|
|
485
|
-
var _a, _b;
|
|
486
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
487
|
-
const _response = yield core.fetcher({
|
|
488
|
-
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
|
|
489
|
-
.preEncounter, `/patients/v1/${encodeURIComponent(serializers.preEncounter.patients.v1.PatientId.jsonOrThrow(id))}/${encodeURIComponent(version)}`),
|
|
490
|
-
method: "PUT",
|
|
491
|
-
headers: {
|
|
492
|
-
Authorization: yield this._getAuthorizationHeader(),
|
|
493
|
-
"X-Fern-Language": "JavaScript",
|
|
494
|
-
"X-Fern-SDK-Name": "candidhealth",
|
|
495
|
-
"X-Fern-SDK-Version": "0.24.3",
|
|
496
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
497
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
498
|
-
},
|
|
499
|
-
contentType: "application/json",
|
|
500
|
-
requestType: "json",
|
|
501
|
-
body: serializers.preEncounter.patients.v1.MutablePatient.jsonOrThrow(request, {
|
|
502
|
-
unrecognizedObjectKeys: "strip",
|
|
503
|
-
}),
|
|
504
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
505
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
506
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
507
|
-
});
|
|
508
|
-
if (_response.ok) {
|
|
509
|
-
return {
|
|
510
|
-
ok: true,
|
|
511
|
-
body: serializers.preEncounter.patients.v1.Patient.parseOrThrow(_response.body, {
|
|
512
|
-
unrecognizedObjectKeys: "passthrough",
|
|
513
|
-
allowUnrecognizedUnionMembers: true,
|
|
514
|
-
allowUnrecognizedEnumValues: true,
|
|
515
|
-
breadcrumbsPrefix: ["response"],
|
|
516
|
-
}),
|
|
517
|
-
};
|
|
518
|
-
}
|
|
519
|
-
if (_response.error.reason === "status-code") {
|
|
520
|
-
switch ((_b = _response.error.body) === null || _b === void 0 ? void 0 : _b.errorName) {
|
|
521
|
-
case "NotFoundError":
|
|
522
|
-
case "VersionConflictError":
|
|
523
|
-
return {
|
|
524
|
-
ok: false,
|
|
525
|
-
error: serializers.preEncounter.patients.v1.patients.update.Error.parseOrThrow(_response.error.body, {
|
|
526
|
-
unrecognizedObjectKeys: "passthrough",
|
|
527
|
-
allowUnrecognizedUnionMembers: true,
|
|
528
|
-
allowUnrecognizedEnumValues: true,
|
|
529
|
-
breadcrumbsPrefix: ["response"],
|
|
530
|
-
}),
|
|
531
|
-
};
|
|
532
|
-
}
|
|
533
|
-
}
|
|
534
|
-
return {
|
|
535
|
-
ok: false,
|
|
536
|
-
error: CandidApi.preEncounter.patients.v1.patients.update.Error._unknown(_response.error),
|
|
537
|
-
};
|
|
538
|
-
});
|
|
539
|
-
}
|
|
540
|
-
/**
|
|
541
|
-
* Sets a patient as deactivated. The path must contain the most recent version to prevent races. Dactivating historic versions is not supported. Subsequent updates via PUT to the patient will "reactivate" the patient and set the deactivated flag to false.
|
|
542
|
-
*
|
|
543
|
-
* @param {CandidApi.preEncounter.patients.v1.PatientId} id
|
|
544
|
-
* @param {number} version
|
|
545
|
-
* @param {Patients.RequestOptions} requestOptions - Request-specific configuration.
|
|
546
|
-
*
|
|
547
|
-
* @example
|
|
548
|
-
* await client.preEncounter.patients.v1.patients.deactivate(CandidApi.preEncounter.patients.v1.PatientId("string"), 1)
|
|
549
|
-
*/
|
|
550
|
-
deactivate(id, version, requestOptions) {
|
|
551
|
-
var _a, _b;
|
|
552
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
553
|
-
const _response = yield core.fetcher({
|
|
554
|
-
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
|
|
555
|
-
.preEncounter, `/patients/v1/${encodeURIComponent(serializers.preEncounter.patients.v1.PatientId.jsonOrThrow(id))}/${encodeURIComponent(version)}`),
|
|
556
|
-
method: "DELETE",
|
|
557
|
-
headers: {
|
|
558
|
-
Authorization: yield this._getAuthorizationHeader(),
|
|
559
|
-
"X-Fern-Language": "JavaScript",
|
|
560
|
-
"X-Fern-SDK-Name": "candidhealth",
|
|
561
|
-
"X-Fern-SDK-Version": "0.24.3",
|
|
562
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
563
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
564
|
-
},
|
|
565
|
-
contentType: "application/json",
|
|
566
|
-
requestType: "json",
|
|
567
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
568
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
569
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
570
|
-
});
|
|
571
|
-
if (_response.ok) {
|
|
572
|
-
return {
|
|
573
|
-
ok: true,
|
|
574
|
-
body: undefined,
|
|
575
|
-
};
|
|
576
|
-
}
|
|
577
|
-
if (_response.error.reason === "status-code") {
|
|
578
|
-
switch ((_b = _response.error.body) === null || _b === void 0 ? void 0 : _b.errorName) {
|
|
579
|
-
case "NotFoundError":
|
|
580
|
-
case "VersionConflictError":
|
|
581
|
-
return {
|
|
582
|
-
ok: false,
|
|
583
|
-
error: serializers.preEncounter.patients.v1.patients.deactivate.Error.parseOrThrow(_response.error.body, {
|
|
584
|
-
unrecognizedObjectKeys: "passthrough",
|
|
585
|
-
allowUnrecognizedUnionMembers: true,
|
|
586
|
-
allowUnrecognizedEnumValues: true,
|
|
587
|
-
breadcrumbsPrefix: ["response"],
|
|
588
|
-
}),
|
|
589
|
-
};
|
|
590
|
-
}
|
|
591
|
-
}
|
|
592
|
-
return {
|
|
593
|
-
ok: false,
|
|
594
|
-
error: CandidApi.preEncounter.patients.v1.patients.deactivate.Error._unknown(_response.error),
|
|
595
|
-
};
|
|
596
|
-
});
|
|
597
|
-
}
|
|
598
|
-
/**
|
|
599
|
-
* Searches for patients that match the query parameters.
|
|
600
|
-
*
|
|
601
|
-
* @param {CandidApi.preEncounter.patients.v1.PatientsSearchRequest} request
|
|
602
|
-
* @param {Patients.RequestOptions} requestOptions - Request-specific configuration.
|
|
603
|
-
*
|
|
604
|
-
* @example
|
|
605
|
-
* await client.preEncounter.patients.v1.patients.search({
|
|
606
|
-
* nameContains: "string"
|
|
607
|
-
* })
|
|
608
|
-
*/
|
|
609
|
-
search(request = {}, requestOptions) {
|
|
610
|
-
var _a;
|
|
611
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
612
|
-
const { nameContains } = request;
|
|
613
|
-
const _queryParams = {};
|
|
614
|
-
if (nameContains != null) {
|
|
615
|
-
_queryParams["name_contains"] = nameContains;
|
|
616
|
-
}
|
|
617
|
-
const _response = yield core.fetcher({
|
|
618
|
-
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
|
|
619
|
-
.preEncounter, "/patients/v1"),
|
|
620
|
-
method: "GET",
|
|
621
|
-
headers: {
|
|
622
|
-
Authorization: yield this._getAuthorizationHeader(),
|
|
623
|
-
"X-Fern-Language": "JavaScript",
|
|
624
|
-
"X-Fern-SDK-Name": "candidhealth",
|
|
625
|
-
"X-Fern-SDK-Version": "0.24.3",
|
|
626
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
627
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
628
|
-
},
|
|
629
|
-
contentType: "application/json",
|
|
630
|
-
queryParameters: _queryParams,
|
|
631
|
-
requestType: "json",
|
|
632
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
633
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
634
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
635
|
-
});
|
|
636
|
-
if (_response.ok) {
|
|
637
|
-
return {
|
|
638
|
-
ok: true,
|
|
639
|
-
body: serializers.preEncounter.patients.v1.patients.search.Response.parseOrThrow(_response.body, {
|
|
640
|
-
unrecognizedObjectKeys: "passthrough",
|
|
641
|
-
allowUnrecognizedUnionMembers: true,
|
|
642
|
-
allowUnrecognizedEnumValues: true,
|
|
643
|
-
breadcrumbsPrefix: ["response"],
|
|
644
|
-
}),
|
|
645
|
-
};
|
|
646
|
-
}
|
|
647
|
-
return {
|
|
648
|
-
ok: false,
|
|
649
|
-
error: CandidApi.preEncounter.patients.v1.patients.search.Error._unknown(_response.error),
|
|
650
|
-
};
|
|
651
|
-
});
|
|
652
|
-
}
|
|
653
|
-
/**
|
|
654
|
-
* Scans up to 100 patient updates. The since query parameter is inclusive, and the result list is ordered by updatedAt descending.
|
|
655
|
-
*
|
|
656
|
-
* @param {CandidApi.preEncounter.patients.v1.PatientScanRequest} request
|
|
657
|
-
* @param {Patients.RequestOptions} requestOptions - Request-specific configuration.
|
|
658
|
-
*
|
|
659
|
-
* @example
|
|
660
|
-
* await client.preEncounter.patients.v1.patients.scan({
|
|
661
|
-
* since: new Date("2024-01-15T09:30:00.000Z")
|
|
662
|
-
* })
|
|
663
|
-
*/
|
|
664
|
-
scan(request, requestOptions) {
|
|
665
|
-
var _a;
|
|
666
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
667
|
-
const { since } = request;
|
|
668
|
-
const _queryParams = {};
|
|
669
|
-
_queryParams["since"] = since.toISOString();
|
|
670
|
-
const _response = yield core.fetcher({
|
|
671
|
-
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
|
|
672
|
-
.preEncounter, "/patients/v1/updates/scan"),
|
|
673
|
-
method: "GET",
|
|
674
|
-
headers: {
|
|
675
|
-
Authorization: yield this._getAuthorizationHeader(),
|
|
676
|
-
"X-Fern-Language": "JavaScript",
|
|
677
|
-
"X-Fern-SDK-Name": "candidhealth",
|
|
678
|
-
"X-Fern-SDK-Version": "0.24.3",
|
|
679
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
680
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
681
|
-
},
|
|
682
|
-
contentType: "application/json",
|
|
683
|
-
queryParameters: _queryParams,
|
|
684
|
-
requestType: "json",
|
|
685
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
686
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
687
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
688
|
-
});
|
|
689
|
-
if (_response.ok) {
|
|
690
|
-
return {
|
|
691
|
-
ok: true,
|
|
692
|
-
body: serializers.preEncounter.patients.v1.patients.scan.Response.parseOrThrow(_response.body, {
|
|
693
|
-
unrecognizedObjectKeys: "passthrough",
|
|
694
|
-
allowUnrecognizedUnionMembers: true,
|
|
695
|
-
allowUnrecognizedEnumValues: true,
|
|
696
|
-
breadcrumbsPrefix: ["response"],
|
|
697
|
-
}),
|
|
698
|
-
};
|
|
699
|
-
}
|
|
700
|
-
return {
|
|
701
|
-
ok: false,
|
|
702
|
-
error: CandidApi.preEncounter.patients.v1.patients.scan.Error._unknown(_response.error),
|
|
703
|
-
};
|
|
704
|
-
});
|
|
705
|
-
}
|
|
706
|
-
_getAuthorizationHeader() {
|
|
707
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
708
|
-
const bearer = yield core.Supplier.get(this._options.token);
|
|
709
|
-
if (bearer != null) {
|
|
710
|
-
return `Bearer ${bearer}`;
|
|
711
|
-
}
|
|
712
|
-
return undefined;
|
|
713
|
-
});
|
|
714
|
-
}
|
|
715
|
-
}
|
|
716
|
-
exports.Patients = Patients;
|