candidhealth 0.24.2 → 0.24.3
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 -0
- package/Client.js +45 -40
- 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/Primitive.d.ts +14 -0
- package/api/resources/commons/types/Primitive.js +12 -0
- package/api/resources/commons/types/SchemaId.d.ts +8 -0
- package/api/resources/commons/types/SchemaId.js +10 -0
- package/api/resources/commons/types/index.d.ts +2 -0
- package/api/resources/commons/types/index.js +2 -0
- package/api/resources/contracts/resources/v2/client/Client.js +5 -5
- package/api/resources/customSchemas/client/Client.d.ts +26 -0
- package/api/resources/customSchemas/client/Client.js +17 -0
- package/api/resources/customSchemas/client/index.d.ts +1 -0
- package/api/resources/customSchemas/client/index.js +2 -0
- package/api/resources/customSchemas/index.d.ts +2 -0
- package/api/resources/customSchemas/index.js +18 -0
- package/api/resources/customSchemas/resources/index.d.ts +1 -0
- package/api/resources/customSchemas/resources/index.js +27 -0
- package/api/resources/customSchemas/resources/v1/client/Client.d.ts +80 -0
- package/api/resources/customSchemas/resources/v1/client/Client.js +325 -0
- package/api/resources/customSchemas/resources/v1/client/create.d.ts +28 -0
- package/api/resources/customSchemas/resources/v1/client/create.js +58 -0
- package/api/resources/customSchemas/resources/v1/client/get.d.ts +34 -0
- package/api/resources/customSchemas/resources/v1/client/get.js +69 -0
- package/api/resources/customSchemas/resources/v1/client/getMulti.d.ts +28 -0
- package/api/resources/customSchemas/resources/v1/client/getMulti.js +58 -0
- package/api/resources/customSchemas/resources/v1/client/index.d.ts +5 -0
- package/api/resources/customSchemas/resources/v1/client/index.js +34 -0
- package/api/resources/customSchemas/resources/v1/client/requests/SchemaCreate.d.ts +20 -0
- package/api/resources/customSchemas/resources/v1/client/requests/SchemaCreate.js +5 -0
- package/api/resources/customSchemas/resources/v1/client/requests/SchemaUpdate.d.ts +21 -0
- package/api/resources/customSchemas/resources/v1/client/requests/SchemaUpdate.js +5 -0
- package/api/resources/customSchemas/resources/v1/client/requests/index.d.ts +2 -0
- package/api/resources/customSchemas/resources/v1/client/requests/index.js +2 -0
- package/api/resources/customSchemas/resources/v1/client/update.d.ts +40 -0
- package/api/resources/customSchemas/resources/v1/client/update.js +80 -0
- package/api/resources/customSchemas/resources/v1/index.d.ts +2 -0
- package/api/resources/customSchemas/resources/v1/index.js +18 -0
- package/api/resources/customSchemas/resources/v1/types/KeyWithNameAlreadyExistsError.d.ts +8 -0
- package/api/resources/customSchemas/resources/v1/types/KeyWithNameAlreadyExistsError.js +5 -0
- package/api/resources/customSchemas/resources/v1/types/Schema.d.ts +10 -0
- package/api/resources/customSchemas/resources/v1/types/Schema.js +5 -0
- package/api/resources/customSchemas/resources/v1/types/SchemaField.d.ts +8 -0
- package/api/resources/customSchemas/resources/v1/types/SchemaField.js +5 -0
- package/api/resources/customSchemas/resources/v1/types/SchemaGetMultiResponse.d.ts +7 -0
- package/api/resources/customSchemas/resources/v1/types/SchemaGetMultiResponse.js +5 -0
- package/api/resources/customSchemas/resources/v1/types/SchemaInstance.d.ts +22 -0
- package/api/resources/customSchemas/resources/v1/types/SchemaInstance.js +5 -0
- package/api/resources/customSchemas/resources/v1/types/SchemaValidationError.d.ts +13 -0
- package/api/resources/customSchemas/resources/v1/types/SchemaValidationError.js +5 -0
- package/api/resources/customSchemas/resources/v1/types/SchemaValidationFailure.d.ts +7 -0
- package/api/resources/customSchemas/resources/v1/types/SchemaValidationFailure.js +5 -0
- package/api/resources/customSchemas/resources/v1/types/SchemaWithNameAlreadyExistsError.d.ts +8 -0
- package/api/resources/customSchemas/resources/v1/types/SchemaWithNameAlreadyExistsError.js +5 -0
- package/api/resources/customSchemas/resources/v1/types/index.d.ts +8 -0
- package/api/resources/customSchemas/resources/v1/types/index.js +24 -0
- package/api/resources/eligibility/resources/v2/client/Client.js +3 -3
- package/api/resources/encounters/resources/v4/client/Client.d.ts +19 -1
- package/api/resources/encounters/resources/v4/client/Client.js +25 -5
- package/api/resources/encounters/resources/v4/client/create.d.ts +7 -1
- package/api/resources/encounters/resources/v4/client/create.js +11 -0
- package/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +15 -0
- package/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +18 -1
- package/api/resources/encounters/resources/v4/client/update.d.ts +7 -1
- package/api/resources/encounters/resources/v4/client/update.js +11 -0
- package/api/resources/encounters/resources/v4/types/Encounter.d.ts +15 -1
- package/api/resources/encounters/resources/v4/types/EncounterPage.d.ts +10 -1
- package/api/resources/encounters/resources/v4/types/KeyDoesNotExistError.d.ts +8 -0
- package/api/resources/encounters/resources/v4/types/KeyDoesNotExistError.js +5 -0
- package/api/resources/encounters/resources/v4/types/MultipleInstancesForSchemaError.d.ts +7 -0
- package/api/resources/encounters/resources/v4/types/MultipleInstancesForSchemaError.js +5 -0
- package/api/resources/encounters/resources/v4/types/SchemaDoesNotExistError.d.ts +7 -0
- package/api/resources/encounters/resources/v4/types/SchemaDoesNotExistError.js +5 -0
- package/api/resources/encounters/resources/v4/types/SchemaInstanceValidationError.d.ts +22 -0
- package/api/resources/encounters/resources/v4/types/SchemaInstanceValidationError.js +5 -0
- package/api/resources/encounters/resources/v4/types/SchemaInstanceValidationFailure.d.ts +7 -0
- package/api/resources/encounters/resources/v4/types/SchemaInstanceValidationFailure.js +5 -0
- package/api/resources/encounters/resources/v4/types/SchemaUnauthorizedAccessError.d.ts +7 -0
- package/api/resources/encounters/resources/v4/types/SchemaUnauthorizedAccessError.js +5 -0
- package/api/resources/encounters/resources/v4/types/ValueDoesNotMatchKeyTypeError.d.ts +10 -0
- package/api/resources/encounters/resources/v4/types/ValueDoesNotMatchKeyTypeError.js +5 -0
- package/api/resources/encounters/resources/v4/types/index.d.ts +7 -0
- package/api/resources/encounters/resources/v4/types/index.js +7 -0
- 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/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 -0
- package/api/resources/index.js +2 -1
- 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/coverages/resources/v1/resources/coverages/client/Client.js +6 -6
- package/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/Client.js +7 -7
- package/api/resources/serviceFacility/client/Client.js +1 -1
- 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 -0
- package/dist/Client.js +45 -40
- 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/Primitive.d.ts +14 -0
- package/dist/api/resources/commons/types/Primitive.js +12 -0
- package/dist/api/resources/commons/types/SchemaId.d.ts +8 -0
- package/dist/api/resources/commons/types/SchemaId.js +10 -0
- package/dist/api/resources/commons/types/index.d.ts +2 -0
- package/dist/api/resources/commons/types/index.js +2 -0
- package/dist/api/resources/contracts/resources/v2/client/Client.js +5 -5
- package/dist/api/resources/customSchemas/client/Client.d.ts +26 -0
- package/dist/api/resources/customSchemas/client/Client.js +17 -0
- package/dist/api/resources/customSchemas/client/index.d.ts +1 -0
- package/dist/api/resources/customSchemas/client/index.js +2 -0
- package/dist/api/resources/customSchemas/index.d.ts +2 -0
- package/dist/api/resources/customSchemas/index.js +18 -0
- package/dist/api/resources/customSchemas/resources/index.d.ts +1 -0
- package/dist/api/resources/customSchemas/resources/index.js +27 -0
- package/dist/api/resources/customSchemas/resources/v1/client/Client.d.ts +80 -0
- package/dist/api/resources/customSchemas/resources/v1/client/Client.js +325 -0
- package/dist/api/resources/customSchemas/resources/v1/client/create.d.ts +28 -0
- package/dist/api/resources/customSchemas/resources/v1/client/create.js +58 -0
- package/dist/api/resources/customSchemas/resources/v1/client/get.d.ts +34 -0
- package/dist/api/resources/customSchemas/resources/v1/client/get.js +69 -0
- package/dist/api/resources/customSchemas/resources/v1/client/getMulti.d.ts +28 -0
- package/dist/api/resources/customSchemas/resources/v1/client/getMulti.js +58 -0
- package/dist/api/resources/customSchemas/resources/v1/client/index.d.ts +5 -0
- package/dist/api/resources/customSchemas/resources/v1/client/index.js +34 -0
- package/dist/api/resources/customSchemas/resources/v1/client/requests/SchemaCreate.d.ts +20 -0
- package/dist/api/resources/customSchemas/resources/v1/client/requests/SchemaCreate.js +5 -0
- package/dist/api/resources/customSchemas/resources/v1/client/requests/SchemaUpdate.d.ts +21 -0
- package/dist/api/resources/customSchemas/resources/v1/client/requests/SchemaUpdate.js +5 -0
- package/dist/api/resources/customSchemas/resources/v1/client/requests/index.d.ts +2 -0
- package/dist/api/resources/customSchemas/resources/v1/client/requests/index.js +2 -0
- package/dist/api/resources/customSchemas/resources/v1/client/update.d.ts +40 -0
- package/dist/api/resources/customSchemas/resources/v1/client/update.js +80 -0
- package/dist/api/resources/customSchemas/resources/v1/index.d.ts +2 -0
- package/dist/api/resources/customSchemas/resources/v1/index.js +18 -0
- package/dist/api/resources/customSchemas/resources/v1/types/KeyWithNameAlreadyExistsError.d.ts +8 -0
- package/dist/api/resources/customSchemas/resources/v1/types/KeyWithNameAlreadyExistsError.js +5 -0
- package/dist/api/resources/customSchemas/resources/v1/types/Schema.d.ts +10 -0
- package/dist/api/resources/customSchemas/resources/v1/types/Schema.js +5 -0
- package/dist/api/resources/customSchemas/resources/v1/types/SchemaField.d.ts +8 -0
- package/dist/api/resources/customSchemas/resources/v1/types/SchemaField.js +5 -0
- package/dist/api/resources/customSchemas/resources/v1/types/SchemaGetMultiResponse.d.ts +7 -0
- package/dist/api/resources/customSchemas/resources/v1/types/SchemaGetMultiResponse.js +5 -0
- package/dist/api/resources/customSchemas/resources/v1/types/SchemaInstance.d.ts +22 -0
- package/dist/api/resources/customSchemas/resources/v1/types/SchemaInstance.js +5 -0
- package/dist/api/resources/customSchemas/resources/v1/types/SchemaValidationError.d.ts +13 -0
- package/dist/api/resources/customSchemas/resources/v1/types/SchemaValidationError.js +5 -0
- package/dist/api/resources/customSchemas/resources/v1/types/SchemaValidationFailure.d.ts +7 -0
- package/dist/api/resources/customSchemas/resources/v1/types/SchemaValidationFailure.js +5 -0
- package/dist/api/resources/customSchemas/resources/v1/types/SchemaWithNameAlreadyExistsError.d.ts +8 -0
- package/dist/api/resources/customSchemas/resources/v1/types/SchemaWithNameAlreadyExistsError.js +5 -0
- package/dist/api/resources/customSchemas/resources/v1/types/index.d.ts +8 -0
- package/dist/api/resources/customSchemas/resources/v1/types/index.js +24 -0
- package/dist/api/resources/eligibility/resources/v2/client/Client.js +3 -3
- package/dist/api/resources/encounters/resources/v4/client/Client.d.ts +19 -1
- package/dist/api/resources/encounters/resources/v4/client/Client.js +25 -5
- package/dist/api/resources/encounters/resources/v4/client/create.d.ts +7 -1
- package/dist/api/resources/encounters/resources/v4/client/create.js +11 -0
- package/dist/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +15 -0
- package/dist/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +18 -1
- package/dist/api/resources/encounters/resources/v4/client/update.d.ts +7 -1
- package/dist/api/resources/encounters/resources/v4/client/update.js +11 -0
- package/dist/api/resources/encounters/resources/v4/types/Encounter.d.ts +15 -1
- package/dist/api/resources/encounters/resources/v4/types/EncounterPage.d.ts +10 -1
- package/dist/api/resources/encounters/resources/v4/types/KeyDoesNotExistError.d.ts +8 -0
- package/dist/api/resources/encounters/resources/v4/types/KeyDoesNotExistError.js +5 -0
- package/dist/api/resources/encounters/resources/v4/types/MultipleInstancesForSchemaError.d.ts +7 -0
- package/dist/api/resources/encounters/resources/v4/types/MultipleInstancesForSchemaError.js +5 -0
- package/dist/api/resources/encounters/resources/v4/types/SchemaDoesNotExistError.d.ts +7 -0
- package/dist/api/resources/encounters/resources/v4/types/SchemaDoesNotExistError.js +5 -0
- package/dist/api/resources/encounters/resources/v4/types/SchemaInstanceValidationError.d.ts +22 -0
- package/dist/api/resources/encounters/resources/v4/types/SchemaInstanceValidationError.js +5 -0
- package/dist/api/resources/encounters/resources/v4/types/SchemaInstanceValidationFailure.d.ts +7 -0
- package/dist/api/resources/encounters/resources/v4/types/SchemaInstanceValidationFailure.js +5 -0
- package/dist/api/resources/encounters/resources/v4/types/SchemaUnauthorizedAccessError.d.ts +7 -0
- package/dist/api/resources/encounters/resources/v4/types/SchemaUnauthorizedAccessError.js +5 -0
- package/dist/api/resources/encounters/resources/v4/types/ValueDoesNotMatchKeyTypeError.d.ts +10 -0
- package/dist/api/resources/encounters/resources/v4/types/ValueDoesNotMatchKeyTypeError.js +5 -0
- package/dist/api/resources/encounters/resources/v4/types/index.d.ts +7 -0
- package/dist/api/resources/encounters/resources/v4/types/index.js +7 -0
- 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/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 -0
- package/dist/api/resources/index.js +2 -1
- 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/coverages/resources/v1/resources/coverages/client/Client.js +6 -6
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/Client.js +7 -7
- package/dist/api/resources/serviceFacility/client/Client.js +1 -1
- 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/Primitive.d.ts +10 -0
- package/dist/serialization/resources/commons/types/Primitive.js +31 -0
- package/dist/serialization/resources/commons/types/SchemaId.d.ts +10 -0
- package/dist/serialization/resources/commons/types/SchemaId.js +37 -0
- package/dist/serialization/resources/commons/types/index.d.ts +2 -0
- package/dist/serialization/resources/commons/types/index.js +2 -0
- package/dist/serialization/resources/customSchemas/index.d.ts +1 -0
- package/dist/serialization/resources/customSchemas/index.js +17 -0
- package/dist/serialization/resources/customSchemas/resources/index.d.ts +1 -0
- package/dist/serialization/resources/customSchemas/resources/index.js +27 -0
- package/dist/serialization/resources/customSchemas/resources/v1/client/create.d.ts +15 -0
- package/dist/serialization/resources/customSchemas/resources/v1/client/create.js +61 -0
- package/dist/serialization/resources/customSchemas/resources/v1/client/get.d.ts +20 -0
- package/dist/serialization/resources/customSchemas/resources/v1/client/get.js +67 -0
- package/dist/serialization/resources/customSchemas/resources/v1/client/getMulti.d.ts +15 -0
- package/dist/serialization/resources/customSchemas/resources/v1/client/getMulti.js +61 -0
- package/dist/serialization/resources/customSchemas/resources/v1/client/index.d.ts +5 -0
- package/dist/serialization/resources/customSchemas/resources/v1/client/index.js +34 -0
- package/dist/serialization/resources/customSchemas/resources/v1/client/requests/SchemaCreate.d.ts +15 -0
- package/dist/serialization/resources/customSchemas/resources/v1/client/requests/SchemaCreate.js +36 -0
- package/dist/serialization/resources/customSchemas/resources/v1/client/requests/SchemaUpdate.d.ts +15 -0
- package/dist/serialization/resources/customSchemas/resources/v1/client/requests/SchemaUpdate.js +36 -0
- package/dist/serialization/resources/customSchemas/resources/v1/client/requests/index.d.ts +2 -0
- package/dist/serialization/resources/customSchemas/resources/v1/client/requests/index.js +7 -0
- package/dist/serialization/resources/customSchemas/resources/v1/client/update.d.ts +25 -0
- package/dist/serialization/resources/customSchemas/resources/v1/client/update.js +73 -0
- package/dist/serialization/resources/customSchemas/resources/v1/index.d.ts +2 -0
- package/dist/serialization/resources/customSchemas/resources/v1/index.js +18 -0
- package/dist/serialization/resources/customSchemas/resources/v1/types/KeyWithNameAlreadyExistsError.d.ts +14 -0
- package/dist/serialization/resources/customSchemas/resources/v1/types/KeyWithNameAlreadyExistsError.js +35 -0
- package/dist/serialization/resources/customSchemas/resources/v1/types/Schema.d.ts +17 -0
- package/dist/serialization/resources/customSchemas/resources/v1/types/Schema.js +38 -0
- package/dist/serialization/resources/customSchemas/resources/v1/types/SchemaField.d.ts +14 -0
- package/dist/serialization/resources/customSchemas/resources/v1/types/SchemaField.js +35 -0
- package/dist/serialization/resources/customSchemas/resources/v1/types/SchemaGetMultiResponse.d.ts +13 -0
- package/dist/serialization/resources/customSchemas/resources/v1/types/SchemaGetMultiResponse.js +34 -0
- package/dist/serialization/resources/customSchemas/resources/v1/types/SchemaInstance.d.ts +14 -0
- package/dist/serialization/resources/customSchemas/resources/v1/types/SchemaInstance.js +35 -0
- package/dist/serialization/resources/customSchemas/resources/v1/types/SchemaValidationError.d.ts +18 -0
- package/dist/serialization/resources/customSchemas/resources/v1/types/SchemaValidationError.js +41 -0
- package/dist/serialization/resources/customSchemas/resources/v1/types/SchemaValidationFailure.d.ts +13 -0
- package/dist/serialization/resources/customSchemas/resources/v1/types/SchemaValidationFailure.js +34 -0
- package/dist/serialization/resources/customSchemas/resources/v1/types/SchemaWithNameAlreadyExistsError.d.ts +14 -0
- package/dist/serialization/resources/customSchemas/resources/v1/types/SchemaWithNameAlreadyExistsError.js +35 -0
- package/dist/serialization/resources/customSchemas/resources/v1/types/index.d.ts +8 -0
- package/dist/serialization/resources/customSchemas/resources/v1/types/index.js +24 -0
- package/dist/serialization/resources/encounters/resources/v4/client/create.d.ts +6 -1
- package/dist/serialization/resources/encounters/resources/v4/client/create.js +6 -0
- package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +2 -0
- package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.js +2 -0
- package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +2 -0
- package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.js +2 -0
- package/dist/serialization/resources/encounters/resources/v4/client/update.d.ts +6 -1
- package/dist/serialization/resources/encounters/resources/v4/client/update.js +6 -0
- package/dist/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +2 -0
- package/dist/serialization/resources/encounters/resources/v4/types/Encounter.js +2 -0
- package/dist/serialization/resources/encounters/resources/v4/types/KeyDoesNotExistError.d.ts +14 -0
- package/dist/serialization/resources/encounters/resources/v4/types/KeyDoesNotExistError.js +35 -0
- package/dist/serialization/resources/encounters/resources/v4/types/MultipleInstancesForSchemaError.d.ts +13 -0
- package/dist/serialization/resources/encounters/resources/v4/types/MultipleInstancesForSchemaError.js +34 -0
- package/dist/serialization/resources/encounters/resources/v4/types/SchemaDoesNotExistError.d.ts +13 -0
- package/dist/serialization/resources/encounters/resources/v4/types/SchemaDoesNotExistError.js +34 -0
- package/dist/serialization/resources/encounters/resources/v4/types/SchemaInstanceValidationError.d.ts +30 -0
- package/dist/serialization/resources/encounters/resources/v4/types/SchemaInstanceValidationError.js +47 -0
- package/dist/serialization/resources/encounters/resources/v4/types/SchemaInstanceValidationFailure.d.ts +13 -0
- package/dist/serialization/resources/encounters/resources/v4/types/SchemaInstanceValidationFailure.js +34 -0
- package/dist/serialization/resources/encounters/resources/v4/types/SchemaUnauthorizedAccessError.d.ts +13 -0
- package/dist/serialization/resources/encounters/resources/v4/types/SchemaUnauthorizedAccessError.js +34 -0
- package/dist/serialization/resources/encounters/resources/v4/types/ValueDoesNotMatchKeyTypeError.d.ts +17 -0
- package/dist/serialization/resources/encounters/resources/v4/types/ValueDoesNotMatchKeyTypeError.js +38 -0
- package/dist/serialization/resources/encounters/resources/v4/types/index.d.ts +7 -0
- package/dist/serialization/resources/encounters/resources/v4/types/index.js +7 -0
- package/dist/serialization/resources/index.d.ts +1 -0
- package/dist/serialization/resources/index.js +2 -1
- package/package.json +1 -1
- package/reference.md +295 -0
- package/serialization/resources/commons/types/Primitive.d.ts +10 -0
- package/serialization/resources/commons/types/Primitive.js +31 -0
- package/serialization/resources/commons/types/SchemaId.d.ts +10 -0
- package/serialization/resources/commons/types/SchemaId.js +37 -0
- package/serialization/resources/commons/types/index.d.ts +2 -0
- package/serialization/resources/commons/types/index.js +2 -0
- package/serialization/resources/customSchemas/index.d.ts +1 -0
- package/serialization/resources/customSchemas/index.js +17 -0
- package/serialization/resources/customSchemas/resources/index.d.ts +1 -0
- package/serialization/resources/customSchemas/resources/index.js +27 -0
- package/serialization/resources/customSchemas/resources/v1/client/create.d.ts +15 -0
- package/serialization/resources/customSchemas/resources/v1/client/create.js +61 -0
- package/serialization/resources/customSchemas/resources/v1/client/get.d.ts +20 -0
- package/serialization/resources/customSchemas/resources/v1/client/get.js +67 -0
- package/serialization/resources/customSchemas/resources/v1/client/getMulti.d.ts +15 -0
- package/serialization/resources/customSchemas/resources/v1/client/getMulti.js +61 -0
- package/serialization/resources/customSchemas/resources/v1/client/index.d.ts +5 -0
- package/serialization/resources/customSchemas/resources/v1/client/index.js +34 -0
- package/serialization/resources/customSchemas/resources/v1/client/requests/SchemaCreate.d.ts +15 -0
- package/serialization/resources/customSchemas/resources/v1/client/requests/SchemaCreate.js +36 -0
- package/serialization/resources/customSchemas/resources/v1/client/requests/SchemaUpdate.d.ts +15 -0
- package/serialization/resources/customSchemas/resources/v1/client/requests/SchemaUpdate.js +36 -0
- package/serialization/resources/customSchemas/resources/v1/client/requests/index.d.ts +2 -0
- package/serialization/resources/customSchemas/resources/v1/client/requests/index.js +7 -0
- package/serialization/resources/customSchemas/resources/v1/client/update.d.ts +25 -0
- package/serialization/resources/customSchemas/resources/v1/client/update.js +73 -0
- package/serialization/resources/customSchemas/resources/v1/index.d.ts +2 -0
- package/serialization/resources/customSchemas/resources/v1/index.js +18 -0
- package/serialization/resources/customSchemas/resources/v1/types/KeyWithNameAlreadyExistsError.d.ts +14 -0
- package/serialization/resources/customSchemas/resources/v1/types/KeyWithNameAlreadyExistsError.js +35 -0
- package/serialization/resources/customSchemas/resources/v1/types/Schema.d.ts +17 -0
- package/serialization/resources/customSchemas/resources/v1/types/Schema.js +38 -0
- package/serialization/resources/customSchemas/resources/v1/types/SchemaField.d.ts +14 -0
- package/serialization/resources/customSchemas/resources/v1/types/SchemaField.js +35 -0
- package/serialization/resources/customSchemas/resources/v1/types/SchemaGetMultiResponse.d.ts +13 -0
- package/serialization/resources/customSchemas/resources/v1/types/SchemaGetMultiResponse.js +34 -0
- package/serialization/resources/customSchemas/resources/v1/types/SchemaInstance.d.ts +14 -0
- package/serialization/resources/customSchemas/resources/v1/types/SchemaInstance.js +35 -0
- package/serialization/resources/customSchemas/resources/v1/types/SchemaValidationError.d.ts +18 -0
- package/serialization/resources/customSchemas/resources/v1/types/SchemaValidationError.js +41 -0
- package/serialization/resources/customSchemas/resources/v1/types/SchemaValidationFailure.d.ts +13 -0
- package/serialization/resources/customSchemas/resources/v1/types/SchemaValidationFailure.js +34 -0
- package/serialization/resources/customSchemas/resources/v1/types/SchemaWithNameAlreadyExistsError.d.ts +14 -0
- package/serialization/resources/customSchemas/resources/v1/types/SchemaWithNameAlreadyExistsError.js +35 -0
- package/serialization/resources/customSchemas/resources/v1/types/index.d.ts +8 -0
- package/serialization/resources/customSchemas/resources/v1/types/index.js +24 -0
- package/serialization/resources/encounters/resources/v4/client/create.d.ts +6 -1
- package/serialization/resources/encounters/resources/v4/client/create.js +6 -0
- package/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +2 -0
- package/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.js +2 -0
- package/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +2 -0
- package/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.js +2 -0
- package/serialization/resources/encounters/resources/v4/client/update.d.ts +6 -1
- package/serialization/resources/encounters/resources/v4/client/update.js +6 -0
- package/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +2 -0
- package/serialization/resources/encounters/resources/v4/types/Encounter.js +2 -0
- package/serialization/resources/encounters/resources/v4/types/KeyDoesNotExistError.d.ts +14 -0
- package/serialization/resources/encounters/resources/v4/types/KeyDoesNotExistError.js +35 -0
- package/serialization/resources/encounters/resources/v4/types/MultipleInstancesForSchemaError.d.ts +13 -0
- package/serialization/resources/encounters/resources/v4/types/MultipleInstancesForSchemaError.js +34 -0
- package/serialization/resources/encounters/resources/v4/types/SchemaDoesNotExistError.d.ts +13 -0
- package/serialization/resources/encounters/resources/v4/types/SchemaDoesNotExistError.js +34 -0
- package/serialization/resources/encounters/resources/v4/types/SchemaInstanceValidationError.d.ts +30 -0
- package/serialization/resources/encounters/resources/v4/types/SchemaInstanceValidationError.js +47 -0
- package/serialization/resources/encounters/resources/v4/types/SchemaInstanceValidationFailure.d.ts +13 -0
- package/serialization/resources/encounters/resources/v4/types/SchemaInstanceValidationFailure.js +34 -0
- package/serialization/resources/encounters/resources/v4/types/SchemaUnauthorizedAccessError.d.ts +13 -0
- package/serialization/resources/encounters/resources/v4/types/SchemaUnauthorizedAccessError.js +34 -0
- package/serialization/resources/encounters/resources/v4/types/ValueDoesNotMatchKeyTypeError.d.ts +17 -0
- package/serialization/resources/encounters/resources/v4/types/ValueDoesNotMatchKeyTypeError.js +38 -0
- package/serialization/resources/encounters/resources/v4/types/index.d.ts +7 -0
- package/serialization/resources/encounters/resources/v4/types/index.js +7 -0
- package/serialization/resources/index.d.ts +1 -0
- package/serialization/resources/index.js +2 -1
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from "./Schema";
|
|
2
|
+
export * from "./SchemaInstance";
|
|
3
|
+
export * from "./SchemaField";
|
|
4
|
+
export * from "./SchemaGetMultiResponse";
|
|
5
|
+
export * from "./SchemaWithNameAlreadyExistsError";
|
|
6
|
+
export * from "./KeyWithNameAlreadyExistsError";
|
|
7
|
+
export * from "./SchemaValidationFailure";
|
|
8
|
+
export * from "./SchemaValidationError";
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./Schema"), exports);
|
|
18
|
+
__exportStar(require("./SchemaInstance"), exports);
|
|
19
|
+
__exportStar(require("./SchemaField"), exports);
|
|
20
|
+
__exportStar(require("./SchemaGetMultiResponse"), exports);
|
|
21
|
+
__exportStar(require("./SchemaWithNameAlreadyExistsError"), exports);
|
|
22
|
+
__exportStar(require("./KeyWithNameAlreadyExistsError"), exports);
|
|
23
|
+
__exportStar(require("./SchemaValidationFailure"), exports);
|
|
24
|
+
__exportStar(require("./SchemaValidationError"), exports);
|
|
@@ -83,7 +83,7 @@ class V2 {
|
|
|
83
83
|
Authorization: yield this._getAuthorizationHeader(),
|
|
84
84
|
"X-Fern-Language": "JavaScript",
|
|
85
85
|
"X-Fern-SDK-Name": "candidhealth",
|
|
86
|
-
"X-Fern-SDK-Version": "0.24.
|
|
86
|
+
"X-Fern-SDK-Version": "0.24.3",
|
|
87
87
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
88
88
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
89
89
|
},
|
|
@@ -156,7 +156,7 @@ class V2 {
|
|
|
156
156
|
Authorization: yield this._getAuthorizationHeader(),
|
|
157
157
|
"X-Fern-Language": "JavaScript",
|
|
158
158
|
"X-Fern-SDK-Name": "candidhealth",
|
|
159
|
-
"X-Fern-SDK-Version": "0.24.
|
|
159
|
+
"X-Fern-SDK-Version": "0.24.3",
|
|
160
160
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
161
161
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
162
162
|
},
|
|
@@ -227,7 +227,7 @@ class V2 {
|
|
|
227
227
|
Authorization: yield this._getAuthorizationHeader(),
|
|
228
228
|
"X-Fern-Language": "JavaScript",
|
|
229
229
|
"X-Fern-SDK-Name": "candidhealth",
|
|
230
|
-
"X-Fern-SDK-Version": "0.24.
|
|
230
|
+
"X-Fern-SDK-Version": "0.24.3",
|
|
231
231
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
232
232
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
233
233
|
},
|
|
@@ -364,6 +364,15 @@ export declare class V4 {
|
|
|
364
364
|
* }]
|
|
365
365
|
* },
|
|
366
366
|
* tagIds: [CandidApi.TagId("string")],
|
|
367
|
+
* schemaInstances: [{
|
|
368
|
+
* schemaId: CandidApi.SchemaId("ec096b13-f80a-471d-aaeb-54b021c9d582"),
|
|
369
|
+
* content: {
|
|
370
|
+
* "provider_category": "internist",
|
|
371
|
+
* "is_urgent_care": true,
|
|
372
|
+
* "bmi": 24.2,
|
|
373
|
+
* "age": 38
|
|
374
|
+
* }
|
|
375
|
+
* }],
|
|
367
376
|
* externalId: CandidApi.EncounterExternalId("string"),
|
|
368
377
|
* priorAuthorizationNumber: CandidApi.encounters.v4.PriorAuthorizationNumber("string"),
|
|
369
378
|
* patientAuthorizedRelease: true,
|
|
@@ -522,7 +531,16 @@ export declare class V4 {
|
|
|
522
531
|
* onsetOfCurrentIllnessOrSymptomDate: "2023-01-15",
|
|
523
532
|
* lastMenstrualPeriodDate: "2023-01-15",
|
|
524
533
|
* delayReasonCode: CandidApi.DelayReasonCode.C1,
|
|
525
|
-
* patientAuthorizedRelease: true
|
|
534
|
+
* patientAuthorizedRelease: true,
|
|
535
|
+
* schemaInstances: [{
|
|
536
|
+
* schemaId: CandidApi.SchemaId("ec096b13-f80a-471d-aaeb-54b021c9d582"),
|
|
537
|
+
* content: {
|
|
538
|
+
* "provider_category": "internist",
|
|
539
|
+
* "is_urgent_care": true,
|
|
540
|
+
* "bmi": 24.2,
|
|
541
|
+
* "age": 38
|
|
542
|
+
* }
|
|
543
|
+
* }]
|
|
526
544
|
* })
|
|
527
545
|
*/
|
|
528
546
|
update(encounterId: CandidApi.EncounterId, request?: CandidApi.encounters.v4.EncounterUpdate, requestOptions?: V4.RequestOptions): Promise<core.APIResponse<CandidApi.encounters.v4.Encounter, CandidApi.encounters.v4.update.Error>>;
|
|
@@ -132,7 +132,7 @@ class V4 {
|
|
|
132
132
|
Authorization: yield this._getAuthorizationHeader(),
|
|
133
133
|
"X-Fern-Language": "JavaScript",
|
|
134
134
|
"X-Fern-SDK-Name": "candidhealth",
|
|
135
|
-
"X-Fern-SDK-Version": "0.24.
|
|
135
|
+
"X-Fern-SDK-Version": "0.24.3",
|
|
136
136
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
137
137
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
138
138
|
},
|
|
@@ -178,7 +178,7 @@ class V4 {
|
|
|
178
178
|
Authorization: yield this._getAuthorizationHeader(),
|
|
179
179
|
"X-Fern-Language": "JavaScript",
|
|
180
180
|
"X-Fern-SDK-Name": "candidhealth",
|
|
181
|
-
"X-Fern-SDK-Version": "0.24.
|
|
181
|
+
"X-Fern-SDK-Version": "0.24.3",
|
|
182
182
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
183
183
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
184
184
|
},
|
|
@@ -521,6 +521,15 @@ class V4 {
|
|
|
521
521
|
* }]
|
|
522
522
|
* },
|
|
523
523
|
* tagIds: [CandidApi.TagId("string")],
|
|
524
|
+
* schemaInstances: [{
|
|
525
|
+
* schemaId: CandidApi.SchemaId("ec096b13-f80a-471d-aaeb-54b021c9d582"),
|
|
526
|
+
* content: {
|
|
527
|
+
* "provider_category": "internist",
|
|
528
|
+
* "is_urgent_care": true,
|
|
529
|
+
* "bmi": 24.2,
|
|
530
|
+
* "age": 38
|
|
531
|
+
* }
|
|
532
|
+
* }],
|
|
524
533
|
* externalId: CandidApi.EncounterExternalId("string"),
|
|
525
534
|
* priorAuthorizationNumber: CandidApi.encounters.v4.PriorAuthorizationNumber("string"),
|
|
526
535
|
* patientAuthorizedRelease: true,
|
|
@@ -591,7 +600,7 @@ class V4 {
|
|
|
591
600
|
Authorization: yield this._getAuthorizationHeader(),
|
|
592
601
|
"X-Fern-Language": "JavaScript",
|
|
593
602
|
"X-Fern-SDK-Name": "candidhealth",
|
|
594
|
-
"X-Fern-SDK-Version": "0.24.
|
|
603
|
+
"X-Fern-SDK-Version": "0.24.3",
|
|
595
604
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
596
605
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
597
606
|
},
|
|
@@ -621,6 +630,7 @@ class V4 {
|
|
|
621
630
|
case "EncounterGuarantorMissingContactInfoError":
|
|
622
631
|
case "HttpRequestValidationsError":
|
|
623
632
|
case "CashPayPayerError":
|
|
633
|
+
case "SchemaInstanceValidationHttpFailure":
|
|
624
634
|
return {
|
|
625
635
|
ok: false,
|
|
626
636
|
error: serializers.encounters.v4.create.Error.parseOrThrow(_response.error.body, {
|
|
@@ -736,7 +746,16 @@ class V4 {
|
|
|
736
746
|
* onsetOfCurrentIllnessOrSymptomDate: "2023-01-15",
|
|
737
747
|
* lastMenstrualPeriodDate: "2023-01-15",
|
|
738
748
|
* delayReasonCode: CandidApi.DelayReasonCode.C1,
|
|
739
|
-
* patientAuthorizedRelease: true
|
|
749
|
+
* patientAuthorizedRelease: true,
|
|
750
|
+
* schemaInstances: [{
|
|
751
|
+
* schemaId: CandidApi.SchemaId("ec096b13-f80a-471d-aaeb-54b021c9d582"),
|
|
752
|
+
* content: {
|
|
753
|
+
* "provider_category": "internist",
|
|
754
|
+
* "is_urgent_care": true,
|
|
755
|
+
* "bmi": 24.2,
|
|
756
|
+
* "age": 38
|
|
757
|
+
* }
|
|
758
|
+
* }]
|
|
740
759
|
* })
|
|
741
760
|
*/
|
|
742
761
|
update(encounterId, request = {}, requestOptions) {
|
|
@@ -750,7 +769,7 @@ class V4 {
|
|
|
750
769
|
Authorization: yield this._getAuthorizationHeader(),
|
|
751
770
|
"X-Fern-Language": "JavaScript",
|
|
752
771
|
"X-Fern-SDK-Name": "candidhealth",
|
|
753
|
-
"X-Fern-SDK-Version": "0.24.
|
|
772
|
+
"X-Fern-SDK-Version": "0.24.3",
|
|
754
773
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
755
774
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
756
775
|
},
|
|
@@ -778,6 +797,7 @@ class V4 {
|
|
|
778
797
|
case "EntityNotFoundError":
|
|
779
798
|
case "UnauthorizedError":
|
|
780
799
|
case "HttpRequestValidationsError":
|
|
800
|
+
case "SchemaInstanceValidationHttpFailure":
|
|
781
801
|
return {
|
|
782
802
|
ok: false,
|
|
783
803
|
error: serializers.encounters.v4.update.Error.parseOrThrow(_response.error.body, {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as CandidApi from "../../../../../index";
|
|
5
5
|
import * as core from "../../../../../../core";
|
|
6
|
-
export declare type Error = CandidApi.encounters.v4.create.Error.EncounterExternalIdUniquenessError | CandidApi.encounters.v4.create.Error.EncounterPatientControlNumberUniquenessError | CandidApi.encounters.v4.create.Error.EntityNotFoundError | CandidApi.encounters.v4.create.Error.EncounterGuarantorMissingContactInfoError | CandidApi.encounters.v4.create.Error.HttpRequestValidationsError | CandidApi.encounters.v4.create.Error.CashPayPayerError | CandidApi.encounters.v4.create.Error._Unknown;
|
|
6
|
+
export declare type Error = CandidApi.encounters.v4.create.Error.EncounterExternalIdUniquenessError | CandidApi.encounters.v4.create.Error.EncounterPatientControlNumberUniquenessError | CandidApi.encounters.v4.create.Error.EntityNotFoundError | CandidApi.encounters.v4.create.Error.EncounterGuarantorMissingContactInfoError | CandidApi.encounters.v4.create.Error.HttpRequestValidationsError | CandidApi.encounters.v4.create.Error.CashPayPayerError | CandidApi.encounters.v4.create.Error.SchemaInstanceValidationHttpFailure | CandidApi.encounters.v4.create.Error._Unknown;
|
|
7
7
|
export declare namespace Error {
|
|
8
8
|
interface EncounterExternalIdUniquenessError extends _Utils {
|
|
9
9
|
errorName: "EncounterExternalIdUniquenessError";
|
|
@@ -29,6 +29,10 @@ export declare namespace Error {
|
|
|
29
29
|
errorName: "CashPayPayerError";
|
|
30
30
|
content: CandidApi.encounters.v4.CashPayPayerErrorMessage;
|
|
31
31
|
}
|
|
32
|
+
interface SchemaInstanceValidationHttpFailure extends _Utils {
|
|
33
|
+
errorName: "SchemaInstanceValidationHttpFailure";
|
|
34
|
+
content: CandidApi.encounters.v4.SchemaInstanceValidationFailure;
|
|
35
|
+
}
|
|
32
36
|
interface _Unknown extends _Utils {
|
|
33
37
|
errorName: void;
|
|
34
38
|
content: core.Fetcher.Error;
|
|
@@ -43,6 +47,7 @@ export declare namespace Error {
|
|
|
43
47
|
encounterGuarantorMissingContactInfoError: (value: CandidApi.encounters.v4.EncounterGuarantorMissingContactInfoErrorType) => _Result;
|
|
44
48
|
httpRequestValidationsError: (value: CandidApi.RequestValidationError[]) => _Result;
|
|
45
49
|
cashPayPayerError: (value: CandidApi.encounters.v4.CashPayPayerErrorMessage) => _Result;
|
|
50
|
+
schemaInstanceValidationHttpFailure: (value: CandidApi.encounters.v4.SchemaInstanceValidationFailure) => _Result;
|
|
46
51
|
_other: (value: core.Fetcher.Error) => _Result;
|
|
47
52
|
}
|
|
48
53
|
}
|
|
@@ -53,6 +58,7 @@ export declare const Error: {
|
|
|
53
58
|
readonly encounterGuarantorMissingContactInfoError: (value: CandidApi.encounters.v4.EncounterGuarantorMissingContactInfoErrorType) => CandidApi.encounters.v4.create.Error.EncounterGuarantorMissingContactInfoError;
|
|
54
59
|
readonly httpRequestValidationsError: (value: CandidApi.RequestValidationError[]) => CandidApi.encounters.v4.create.Error.HttpRequestValidationsError;
|
|
55
60
|
readonly cashPayPayerError: (value: CandidApi.encounters.v4.CashPayPayerErrorMessage) => CandidApi.encounters.v4.create.Error.CashPayPayerError;
|
|
61
|
+
readonly schemaInstanceValidationHttpFailure: (value: CandidApi.encounters.v4.SchemaInstanceValidationFailure) => CandidApi.encounters.v4.create.Error.SchemaInstanceValidationHttpFailure;
|
|
56
62
|
readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.encounters.v4.create.Error._Unknown;
|
|
57
63
|
readonly _visit: <_Result>(value: CandidApi.encounters.v4.create.Error, visitor: CandidApi.encounters.v4.create.Error._Visitor<_Result>) => _Result;
|
|
58
64
|
};
|
|
@@ -83,6 +83,15 @@ exports.Error = {
|
|
|
83
83
|
},
|
|
84
84
|
};
|
|
85
85
|
},
|
|
86
|
+
schemaInstanceValidationHttpFailure: (value) => {
|
|
87
|
+
return {
|
|
88
|
+
content: value,
|
|
89
|
+
errorName: "SchemaInstanceValidationHttpFailure",
|
|
90
|
+
_visit: function (visitor) {
|
|
91
|
+
return CandidApi.encounters.v4.create.Error._visit(this, visitor);
|
|
92
|
+
},
|
|
93
|
+
};
|
|
94
|
+
},
|
|
86
95
|
_unknown: (fetcherError) => {
|
|
87
96
|
return {
|
|
88
97
|
errorName: undefined,
|
|
@@ -106,6 +115,8 @@ exports.Error = {
|
|
|
106
115
|
return visitor.httpRequestValidationsError(value.content);
|
|
107
116
|
case "CashPayPayerError":
|
|
108
117
|
return visitor.cashPayPayerError(value.content);
|
|
118
|
+
case "SchemaInstanceValidationHttpFailure":
|
|
119
|
+
return visitor.schemaInstanceValidationHttpFailure(value.content);
|
|
109
120
|
default:
|
|
110
121
|
return visitor._other(value);
|
|
111
122
|
}
|
|
@@ -315,6 +315,15 @@ import * as CandidApi from "../../../../../../index";
|
|
|
315
315
|
* }]
|
|
316
316
|
* },
|
|
317
317
|
* tagIds: [CandidApi.TagId("string")],
|
|
318
|
+
* schemaInstances: [{
|
|
319
|
+
* schemaId: CandidApi.SchemaId("ec096b13-f80a-471d-aaeb-54b021c9d582"),
|
|
320
|
+
* content: {
|
|
321
|
+
* "provider_category": "internist",
|
|
322
|
+
* "is_urgent_care": true,
|
|
323
|
+
* "bmi": 24.2,
|
|
324
|
+
* "age": 38
|
|
325
|
+
* }
|
|
326
|
+
* }],
|
|
318
327
|
* externalId: CandidApi.EncounterExternalId("string"),
|
|
319
328
|
* priorAuthorizationNumber: CandidApi.encounters.v4.PriorAuthorizationNumber("string"),
|
|
320
329
|
* patientAuthorizedRelease: true,
|
|
@@ -490,4 +499,10 @@ export interface EncounterCreate extends CandidApi.encounters.v4.EncounterBase {
|
|
|
490
499
|
externalClaimSubmission?: CandidApi.claimSubmission.v1.ExternalClaimSubmissionCreate;
|
|
491
500
|
/** Names of tags that should be on the encounter. */
|
|
492
501
|
tagIds?: CandidApi.TagId[];
|
|
502
|
+
/**
|
|
503
|
+
* Key-value pairs that must adhere to a schema created via the Custom Schema API. Multiple schema
|
|
504
|
+
* instances cannot be created for the same schema on an encounter.
|
|
505
|
+
*
|
|
506
|
+
*/
|
|
507
|
+
schemaInstances?: CandidApi.customSchemas.v1.SchemaInstance[];
|
|
493
508
|
}
|
|
@@ -96,7 +96,16 @@ import * as CandidApi from "../../../../../../index";
|
|
|
96
96
|
* onsetOfCurrentIllnessOrSymptomDate: "2023-01-15",
|
|
97
97
|
* lastMenstrualPeriodDate: "2023-01-15",
|
|
98
98
|
* delayReasonCode: CandidApi.DelayReasonCode.C1,
|
|
99
|
-
* patientAuthorizedRelease: true
|
|
99
|
+
* patientAuthorizedRelease: true,
|
|
100
|
+
* schemaInstances: [{
|
|
101
|
+
* schemaId: CandidApi.SchemaId("ec096b13-f80a-471d-aaeb-54b021c9d582"),
|
|
102
|
+
* content: {
|
|
103
|
+
* "provider_category": "internist",
|
|
104
|
+
* "is_urgent_care": true,
|
|
105
|
+
* "bmi": 24.2,
|
|
106
|
+
* "age": 38
|
|
107
|
+
* }
|
|
108
|
+
* }]
|
|
100
109
|
* }
|
|
101
110
|
*/
|
|
102
111
|
export interface EncounterUpdate {
|
|
@@ -239,4 +248,12 @@ export interface EncounterUpdate {
|
|
|
239
248
|
*
|
|
240
249
|
*/
|
|
241
250
|
patientAuthorizedRelease?: boolean;
|
|
251
|
+
/**
|
|
252
|
+
* Key-value pairs that must adhere to a schema created via the Custom Schema API. Multiple schema
|
|
253
|
+
* instances cannot be created for the same schema on an encounter. Updating schema instances utilizes PUT
|
|
254
|
+
* semantics, so the schema instances on the encounter will be set to whatever inputs are provided. If null
|
|
255
|
+
* is provided as an input, then the encounter's schema instances will be cleared.
|
|
256
|
+
*
|
|
257
|
+
*/
|
|
258
|
+
schemaInstances?: CandidApi.customSchemas.v1.SchemaInstance[];
|
|
242
259
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as CandidApi from "../../../../../index";
|
|
5
5
|
import * as core from "../../../../../../core";
|
|
6
|
-
export declare type Error = CandidApi.encounters.v4.update.Error.EncounterExternalIdUniquenessError | CandidApi.encounters.v4.update.Error.EntityNotFoundError | CandidApi.encounters.v4.update.Error.UnauthorizedError | CandidApi.encounters.v4.update.Error.HttpRequestValidationsError | CandidApi.encounters.v4.update.Error._Unknown;
|
|
6
|
+
export declare type Error = CandidApi.encounters.v4.update.Error.EncounterExternalIdUniquenessError | CandidApi.encounters.v4.update.Error.EntityNotFoundError | CandidApi.encounters.v4.update.Error.UnauthorizedError | CandidApi.encounters.v4.update.Error.HttpRequestValidationsError | CandidApi.encounters.v4.update.Error.SchemaInstanceValidationHttpFailure | CandidApi.encounters.v4.update.Error._Unknown;
|
|
7
7
|
export declare namespace Error {
|
|
8
8
|
interface EncounterExternalIdUniquenessError extends _Utils {
|
|
9
9
|
errorName: "EncounterExternalIdUniquenessError";
|
|
@@ -21,6 +21,10 @@ export declare namespace Error {
|
|
|
21
21
|
errorName: "HttpRequestValidationsError";
|
|
22
22
|
content: CandidApi.RequestValidationError[];
|
|
23
23
|
}
|
|
24
|
+
interface SchemaInstanceValidationHttpFailure extends _Utils {
|
|
25
|
+
errorName: "SchemaInstanceValidationHttpFailure";
|
|
26
|
+
content: CandidApi.encounters.v4.SchemaInstanceValidationFailure;
|
|
27
|
+
}
|
|
24
28
|
interface _Unknown extends _Utils {
|
|
25
29
|
errorName: void;
|
|
26
30
|
content: core.Fetcher.Error;
|
|
@@ -33,6 +37,7 @@ export declare namespace Error {
|
|
|
33
37
|
entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => _Result;
|
|
34
38
|
unauthorizedError: (value: CandidApi.UnauthorizedErrorMessage) => _Result;
|
|
35
39
|
httpRequestValidationsError: (value: CandidApi.RequestValidationError[]) => _Result;
|
|
40
|
+
schemaInstanceValidationHttpFailure: (value: CandidApi.encounters.v4.SchemaInstanceValidationFailure) => _Result;
|
|
36
41
|
_other: (value: core.Fetcher.Error) => _Result;
|
|
37
42
|
}
|
|
38
43
|
}
|
|
@@ -41,6 +46,7 @@ export declare const Error: {
|
|
|
41
46
|
readonly entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => CandidApi.encounters.v4.update.Error.EntityNotFoundError;
|
|
42
47
|
readonly unauthorizedError: (value: CandidApi.UnauthorizedErrorMessage) => CandidApi.encounters.v4.update.Error.UnauthorizedError;
|
|
43
48
|
readonly httpRequestValidationsError: (value: CandidApi.RequestValidationError[]) => CandidApi.encounters.v4.update.Error.HttpRequestValidationsError;
|
|
49
|
+
readonly schemaInstanceValidationHttpFailure: (value: CandidApi.encounters.v4.SchemaInstanceValidationFailure) => CandidApi.encounters.v4.update.Error.SchemaInstanceValidationHttpFailure;
|
|
44
50
|
readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.encounters.v4.update.Error._Unknown;
|
|
45
51
|
readonly _visit: <_Result>(value: CandidApi.encounters.v4.update.Error, visitor: CandidApi.encounters.v4.update.Error._Visitor<_Result>) => _Result;
|
|
46
52
|
};
|
|
@@ -65,6 +65,15 @@ exports.Error = {
|
|
|
65
65
|
},
|
|
66
66
|
};
|
|
67
67
|
},
|
|
68
|
+
schemaInstanceValidationHttpFailure: (value) => {
|
|
69
|
+
return {
|
|
70
|
+
content: value,
|
|
71
|
+
errorName: "SchemaInstanceValidationHttpFailure",
|
|
72
|
+
_visit: function (visitor) {
|
|
73
|
+
return CandidApi.encounters.v4.update.Error._visit(this, visitor);
|
|
74
|
+
},
|
|
75
|
+
};
|
|
76
|
+
},
|
|
68
77
|
_unknown: (fetcherError) => {
|
|
69
78
|
return {
|
|
70
79
|
errorName: undefined,
|
|
@@ -84,6 +93,8 @@ exports.Error = {
|
|
|
84
93
|
return visitor.unauthorizedError(value.content);
|
|
85
94
|
case "HttpRequestValidationsError":
|
|
86
95
|
return visitor.httpRequestValidationsError(value.content);
|
|
96
|
+
case "SchemaInstanceValidationHttpFailure":
|
|
97
|
+
return visitor.schemaInstanceValidationHttpFailure(value.content);
|
|
87
98
|
default:
|
|
88
99
|
return visitor._other(value);
|
|
89
100
|
}
|
|
@@ -374,7 +374,16 @@ import * as CandidApi from "../../../../../index";
|
|
|
374
374
|
* serviceAuthorizationExceptionCode: CandidApi.encounters.v4.ServiceAuthorizationExceptionCode.C1,
|
|
375
375
|
* admissionDate: "2023-01-01",
|
|
376
376
|
* dischargeDate: "2023-01-05",
|
|
377
|
-
* onsetOfCurrentIllnessOrSymptomDate: "2023-01-01"
|
|
377
|
+
* onsetOfCurrentIllnessOrSymptomDate: "2023-01-01",
|
|
378
|
+
* schemaInstances: [{
|
|
379
|
+
* schemaId: CandidApi.SchemaId("ec096b13-f80a-471d-aaeb-54b021c9d582"),
|
|
380
|
+
* content: {
|
|
381
|
+
* "provider_category": "internist",
|
|
382
|
+
* "is_urgent_care": true,
|
|
383
|
+
* "bmi": 24.2,
|
|
384
|
+
* "age": 38
|
|
385
|
+
* }
|
|
386
|
+
* }]
|
|
378
387
|
* }
|
|
379
388
|
*/
|
|
380
389
|
export interface Encounter extends CandidApi.encounters.v4.EncounterBase {
|
|
@@ -455,4 +464,9 @@ export interface Encounter extends CandidApi.encounters.v4.EncounterBase {
|
|
|
455
464
|
* For Encounters created with an external_claim_submission object, this will be EncounterSubmissionOriginType.EXTERNAL.
|
|
456
465
|
*/
|
|
457
466
|
submissionOrigin: CandidApi.encounters.v4.EncounterSubmissionOriginType;
|
|
467
|
+
/**
|
|
468
|
+
* Key-value pairs that must adhere to a schema created via the Custom Schema API. Multiple schema
|
|
469
|
+
* instances cannot be created for the same schema on an encounter.
|
|
470
|
+
*/
|
|
471
|
+
schemaInstances: CandidApi.customSchemas.v1.SchemaInstance[];
|
|
458
472
|
}
|
|
@@ -375,7 +375,16 @@ import * as CandidApi from "../../../../../index";
|
|
|
375
375
|
* serviceAuthorizationExceptionCode: CandidApi.encounters.v4.ServiceAuthorizationExceptionCode.C1,
|
|
376
376
|
* admissionDate: "2023-01-01",
|
|
377
377
|
* dischargeDate: "2023-01-05",
|
|
378
|
-
* onsetOfCurrentIllnessOrSymptomDate: "2023-01-01"
|
|
378
|
+
* onsetOfCurrentIllnessOrSymptomDate: "2023-01-01",
|
|
379
|
+
* schemaInstances: [{
|
|
380
|
+
* schemaId: CandidApi.SchemaId("ec096b13-f80a-471d-aaeb-54b021c9d582"),
|
|
381
|
+
* content: {
|
|
382
|
+
* "provider_category": "internist",
|
|
383
|
+
* "is_urgent_care": true,
|
|
384
|
+
* "bmi": 24.2,
|
|
385
|
+
* "age": 38
|
|
386
|
+
* }
|
|
387
|
+
* }]
|
|
379
388
|
* }]
|
|
380
389
|
* }
|
|
381
390
|
*/
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as CandidApi from "../../../../../index";
|
|
5
|
+
export declare type SchemaInstanceValidationError = CandidApi.encounters.v4.SchemaInstanceValidationError.MultipleInstancesForSchema | CandidApi.encounters.v4.SchemaInstanceValidationError.ValueDoesNotMatchKeyType | CandidApi.encounters.v4.SchemaInstanceValidationError.KeyDoesNotExist | CandidApi.encounters.v4.SchemaInstanceValidationError.SchemaDoesNotExist | CandidApi.encounters.v4.SchemaInstanceValidationError.SchemaUnauthorizedAccess;
|
|
6
|
+
export declare namespace SchemaInstanceValidationError {
|
|
7
|
+
interface MultipleInstancesForSchema extends CandidApi.encounters.v4.MultipleInstancesForSchemaError {
|
|
8
|
+
type: "multiple_instances_for_schema";
|
|
9
|
+
}
|
|
10
|
+
interface ValueDoesNotMatchKeyType extends CandidApi.encounters.v4.ValueDoesNotMatchKeyTypeError {
|
|
11
|
+
type: "value_does_not_match_key_type";
|
|
12
|
+
}
|
|
13
|
+
interface KeyDoesNotExist extends CandidApi.encounters.v4.KeyDoesNotExistError {
|
|
14
|
+
type: "key_does_not_exist";
|
|
15
|
+
}
|
|
16
|
+
interface SchemaDoesNotExist extends CandidApi.encounters.v4.SchemaDoesNotExistError {
|
|
17
|
+
type: "schema_does_not_exist";
|
|
18
|
+
}
|
|
19
|
+
interface SchemaUnauthorizedAccess extends CandidApi.encounters.v4.SchemaUnauthorizedAccessError {
|
|
20
|
+
type: "schema_unauthorized_access";
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as CandidApi from "../../../../../index";
|
|
5
|
+
export interface ValueDoesNotMatchKeyTypeError {
|
|
6
|
+
schemaId: CandidApi.SchemaId;
|
|
7
|
+
key: string;
|
|
8
|
+
expectedValueType: CandidApi.Primitive;
|
|
9
|
+
value?: unknown;
|
|
10
|
+
}
|
|
@@ -32,3 +32,10 @@ export * from "./EncounterPatientControlNumberUniquenessErrorType";
|
|
|
32
32
|
export * from "./EncounterGuarantorMissingContactInfoErrorType";
|
|
33
33
|
export * from "./CashPayPayerErrorMessage";
|
|
34
34
|
export * from "./ServiceAuthorizationExceptionCode";
|
|
35
|
+
export * from "./SchemaInstanceValidationFailure";
|
|
36
|
+
export * from "./KeyDoesNotExistError";
|
|
37
|
+
export * from "./SchemaDoesNotExistError";
|
|
38
|
+
export * from "./SchemaUnauthorizedAccessError";
|
|
39
|
+
export * from "./ValueDoesNotMatchKeyTypeError";
|
|
40
|
+
export * from "./MultipleInstancesForSchemaError";
|
|
41
|
+
export * from "./SchemaInstanceValidationError";
|
|
@@ -48,3 +48,10 @@ __exportStar(require("./EncounterPatientControlNumberUniquenessErrorType"), expo
|
|
|
48
48
|
__exportStar(require("./EncounterGuarantorMissingContactInfoErrorType"), exports);
|
|
49
49
|
__exportStar(require("./CashPayPayerErrorMessage"), exports);
|
|
50
50
|
__exportStar(require("./ServiceAuthorizationExceptionCode"), exports);
|
|
51
|
+
__exportStar(require("./SchemaInstanceValidationFailure"), exports);
|
|
52
|
+
__exportStar(require("./KeyDoesNotExistError"), exports);
|
|
53
|
+
__exportStar(require("./SchemaDoesNotExistError"), exports);
|
|
54
|
+
__exportStar(require("./SchemaUnauthorizedAccessError"), exports);
|
|
55
|
+
__exportStar(require("./ValueDoesNotMatchKeyTypeError"), exports);
|
|
56
|
+
__exportStar(require("./MultipleInstancesForSchemaError"), exports);
|
|
57
|
+
__exportStar(require("./SchemaInstanceValidationError"), exports);
|
|
@@ -79,7 +79,7 @@ class V1 {
|
|
|
79
79
|
Authorization: yield this._getAuthorizationHeader(),
|
|
80
80
|
"X-Fern-Language": "JavaScript",
|
|
81
81
|
"X-Fern-SDK-Name": "candidhealth",
|
|
82
|
-
"X-Fern-SDK-Version": "0.24.
|
|
82
|
+
"X-Fern-SDK-Version": "0.24.3",
|
|
83
83
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
84
84
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
85
85
|
},
|
|
@@ -86,7 +86,7 @@ class V2 {
|
|
|
86
86
|
Authorization: yield this._getAuthorizationHeader(),
|
|
87
87
|
"X-Fern-Language": "JavaScript",
|
|
88
88
|
"X-Fern-SDK-Name": "candidhealth",
|
|
89
|
-
"X-Fern-SDK-Version": "0.24.
|
|
89
|
+
"X-Fern-SDK-Version": "0.24.3",
|
|
90
90
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
91
91
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
92
92
|
},
|
|
@@ -169,7 +169,7 @@ class V2 {
|
|
|
169
169
|
Authorization: yield this._getAuthorizationHeader(),
|
|
170
170
|
"X-Fern-Language": "JavaScript",
|
|
171
171
|
"X-Fern-SDK-Name": "candidhealth",
|
|
172
|
-
"X-Fern-SDK-Version": "0.24.
|
|
172
|
+
"X-Fern-SDK-Version": "0.24.3",
|
|
173
173
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
174
174
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
175
175
|
},
|
|
@@ -86,7 +86,7 @@ class V3 {
|
|
|
86
86
|
Authorization: yield this._getAuthorizationHeader(),
|
|
87
87
|
"X-Fern-Language": "JavaScript",
|
|
88
88
|
"X-Fern-SDK-Name": "candidhealth",
|
|
89
|
-
"X-Fern-SDK-Version": "0.24.
|
|
89
|
+
"X-Fern-SDK-Version": "0.24.3",
|
|
90
90
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
91
91
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
92
92
|
},
|
|
@@ -82,7 +82,7 @@ class V1 {
|
|
|
82
82
|
Authorization: yield this._getAuthorizationHeader(),
|
|
83
83
|
"X-Fern-Language": "JavaScript",
|
|
84
84
|
"X-Fern-SDK-Name": "candidhealth",
|
|
85
|
-
"X-Fern-SDK-Version": "0.24.
|
|
85
|
+
"X-Fern-SDK-Version": "0.24.3",
|
|
86
86
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
87
87
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
88
88
|
},
|