candidhealth 0.34.5 → 0.34.9
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 +7 -2
- 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/claims/types/Claim.d.ts +4 -4
- package/api/resources/contracts/resources/v2/client/Client.js +5 -5
- package/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
- package/api/resources/diagnoses/client/Client.d.ts +65 -0
- package/api/resources/diagnoses/client/Client.js +237 -0
- package/api/resources/diagnoses/client/create.d.ts +22 -0
- package/api/resources/diagnoses/client/create.js +47 -0
- package/api/resources/diagnoses/client/delete.d.ts +28 -0
- package/api/resources/diagnoses/client/delete.js +58 -0
- package/api/resources/diagnoses/client/index.d.ts +4 -0
- package/api/resources/diagnoses/client/index.js +33 -0
- package/api/resources/diagnoses/client/requests/DiagnosisUpdate.d.ts +33 -0
- package/api/resources/diagnoses/client/requests/DiagnosisUpdate.js +5 -0
- package/api/resources/diagnoses/client/requests/index.d.ts +1 -0
- package/api/resources/diagnoses/client/requests/index.js +2 -0
- package/api/resources/diagnoses/client/update.d.ts +28 -0
- package/api/resources/diagnoses/client/update.js +58 -0
- package/api/resources/diagnoses/index.d.ts +1 -0
- package/api/resources/diagnoses/index.js +1 -0
- package/api/resources/diagnoses/types/DiagnosisNotFoundError.d.ts +8 -0
- package/api/resources/diagnoses/types/DiagnosisNotFoundError.js +5 -0
- package/api/resources/diagnoses/types/index.d.ts +1 -0
- package/api/resources/diagnoses/types/index.js +1 -0
- package/api/resources/eligibility/resources/v2/client/Client.js +3 -3
- package/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
- package/api/resources/encounters/resources/v4/client/Client.d.ts +27 -14
- package/api/resources/encounters/resources/v4/client/Client.js +32 -19
- package/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +12 -6
- package/api/resources/encounters/resources/v4/client/requests/EncounterCreateFromPreEncounter.d.ts +8 -6
- package/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +12 -2
- package/api/resources/encounters/resources/v4/types/Encounter.d.ts +14 -4
- package/api/resources/encounters/resources/v4/types/EncounterBase.d.ts +2 -0
- package/api/resources/encounters/resources/v4/types/EncounterPage.d.ts +14 -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/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 +1 -0
- package/api/resources/individual/types/Patient.d.ts +11 -0
- package/api/resources/individual/types/PatientCreate.d.ts +1 -0
- package/api/resources/individual/types/PatientNonInsurancePayerInfo.d.ts +21 -0
- package/api/resources/individual/types/PatientNonInsurancePayerInfo.js +5 -0
- package/api/resources/individual/types/PatientNonInsurancePayerInfoCreate.d.ts +8 -0
- package/api/resources/individual/types/PatientNonInsurancePayerInfoCreate.js +5 -0
- package/api/resources/individual/types/PatientUpdate.d.ts +2 -0
- package/api/resources/individual/types/index.d.ts +2 -0
- package/api/resources/individual/types/index.js +2 -0
- 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/medicationDispense/resources/v1/client/Client.d.ts +2 -1
- package/api/resources/medicationDispense/resources/v1/client/Client.js +3 -2
- package/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
- package/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
- package/api/resources/nonInsurancePayers/resources/v1/client/Client.d.ts +12 -1
- package/api/resources/nonInsurancePayers/resources/v1/client/Client.js +18 -7
- package/api/resources/nonInsurancePayers/resources/v1/types/CreateNonInsurancePayerRequest.d.ts +2 -0
- package/api/resources/nonInsurancePayers/resources/v1/types/NonInsurancePayerAddressUpdate.d.ts +14 -0
- package/api/resources/nonInsurancePayers/resources/v1/types/NonInsurancePayerAddressUpdate.js +5 -0
- package/api/resources/nonInsurancePayers/resources/v1/types/NonInsurancePayerUpdateRequest.d.ts +1 -0
- package/api/resources/nonInsurancePayers/resources/v1/types/index.d.ts +1 -0
- package/api/resources/nonInsurancePayers/resources/v1/types/index.js +1 -0
- 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/appointments/resources/v1/client/Client.js +6 -6
- package/api/resources/preEncounter/resources/common/types/CanonicalNonInsurancePayerAssociation.d.ts +8 -0
- package/api/resources/preEncounter/resources/common/types/CanonicalNonInsurancePayerAssociation.js +5 -0
- package/api/resources/preEncounter/resources/common/types/index.d.ts +1 -0
- package/api/resources/preEncounter/resources/common/types/index.js +1 -0
- package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.d.ts +34 -2
- package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +42 -10
- package/api/resources/preEncounter/resources/coverages/resources/v1/types/Subscriber.d.ts +1 -0
- package/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
- package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +16 -2
- package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +24 -10
- package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientRequest.d.ts +8 -1
- package/api/resources/preEncounter/resources/patients/resources/v1/types/Guarantor.d.ts +1 -1
- package/api/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +2 -0
- package/api/resources/serviceFacility/client/Client.js +1 -1
- package/api/resources/serviceLines/resources/v2/client/Client.d.ts +21 -6
- package/api/resources/serviceLines/resources/v2/client/Client.js +24 -9
- package/api/resources/serviceLines/resources/v2/types/DrugIdentification.d.ts +1 -0
- package/api/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +6 -6
- package/api/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +2 -2
- package/api/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.d.ts +3 -0
- package/api/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +6 -2
- package/api/resources/serviceLines/resources/v2/types/TestResult.d.ts +3 -10
- package/api/resources/serviceLines/resources/v2/types/TestResultType.d.ts +8 -0
- package/api/resources/serviceLines/resources/v2/types/TestResultType.js +10 -0
- package/api/resources/serviceLines/resources/v2/types/index.d.ts +1 -0
- package/api/resources/serviceLines/resources/v2/types/index.js +1 -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 -0
- package/dist/Client.js +7 -2
- 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/claims/types/Claim.d.ts +4 -4
- package/dist/api/resources/contracts/resources/v2/client/Client.js +5 -5
- package/dist/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
- package/dist/api/resources/diagnoses/client/Client.d.ts +65 -0
- package/dist/api/resources/diagnoses/client/Client.js +237 -0
- package/dist/api/resources/diagnoses/client/create.d.ts +22 -0
- package/dist/api/resources/diagnoses/client/create.js +47 -0
- package/dist/api/resources/diagnoses/client/delete.d.ts +28 -0
- package/dist/api/resources/diagnoses/client/delete.js +58 -0
- package/dist/api/resources/diagnoses/client/index.d.ts +4 -0
- package/dist/api/resources/diagnoses/client/index.js +33 -0
- package/dist/api/resources/diagnoses/client/requests/DiagnosisUpdate.d.ts +33 -0
- package/dist/api/resources/diagnoses/client/requests/DiagnosisUpdate.js +5 -0
- package/dist/api/resources/diagnoses/client/requests/index.d.ts +1 -0
- package/dist/api/resources/diagnoses/client/requests/index.js +2 -0
- package/dist/api/resources/diagnoses/client/update.d.ts +28 -0
- package/dist/api/resources/diagnoses/client/update.js +58 -0
- package/dist/api/resources/diagnoses/index.d.ts +1 -0
- package/dist/api/resources/diagnoses/index.js +1 -0
- package/dist/api/resources/diagnoses/types/DiagnosisNotFoundError.d.ts +8 -0
- package/dist/api/resources/diagnoses/types/DiagnosisNotFoundError.js +5 -0
- package/dist/api/resources/diagnoses/types/index.d.ts +1 -0
- package/dist/api/resources/diagnoses/types/index.js +1 -0
- package/dist/api/resources/eligibility/resources/v2/client/Client.js +3 -3
- package/dist/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
- package/dist/api/resources/encounters/resources/v4/client/Client.d.ts +27 -14
- package/dist/api/resources/encounters/resources/v4/client/Client.js +32 -19
- package/dist/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +12 -6
- package/dist/api/resources/encounters/resources/v4/client/requests/EncounterCreateFromPreEncounter.d.ts +8 -6
- package/dist/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +12 -2
- package/dist/api/resources/encounters/resources/v4/types/Encounter.d.ts +14 -4
- package/dist/api/resources/encounters/resources/v4/types/EncounterBase.d.ts +2 -0
- package/dist/api/resources/encounters/resources/v4/types/EncounterPage.d.ts +14 -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/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 +1 -0
- package/dist/api/resources/individual/types/Patient.d.ts +11 -0
- package/dist/api/resources/individual/types/PatientCreate.d.ts +1 -0
- package/dist/api/resources/individual/types/PatientNonInsurancePayerInfo.d.ts +21 -0
- package/dist/api/resources/individual/types/PatientNonInsurancePayerInfo.js +5 -0
- package/dist/api/resources/individual/types/PatientNonInsurancePayerInfoCreate.d.ts +8 -0
- package/dist/api/resources/individual/types/PatientNonInsurancePayerInfoCreate.js +5 -0
- package/dist/api/resources/individual/types/PatientUpdate.d.ts +2 -0
- package/dist/api/resources/individual/types/index.d.ts +2 -0
- package/dist/api/resources/individual/types/index.js +2 -0
- 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/medicationDispense/resources/v1/client/Client.d.ts +2 -1
- package/dist/api/resources/medicationDispense/resources/v1/client/Client.js +3 -2
- package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
- package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
- package/dist/api/resources/nonInsurancePayers/resources/v1/client/Client.d.ts +12 -1
- package/dist/api/resources/nonInsurancePayers/resources/v1/client/Client.js +18 -7
- package/dist/api/resources/nonInsurancePayers/resources/v1/types/CreateNonInsurancePayerRequest.d.ts +2 -0
- package/dist/api/resources/nonInsurancePayers/resources/v1/types/NonInsurancePayerAddressUpdate.d.ts +14 -0
- package/dist/api/resources/nonInsurancePayers/resources/v1/types/NonInsurancePayerAddressUpdate.js +5 -0
- package/dist/api/resources/nonInsurancePayers/resources/v1/types/NonInsurancePayerUpdateRequest.d.ts +1 -0
- package/dist/api/resources/nonInsurancePayers/resources/v1/types/index.d.ts +1 -0
- package/dist/api/resources/nonInsurancePayers/resources/v1/types/index.js +1 -0
- 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/appointments/resources/v1/client/Client.js +6 -6
- package/dist/api/resources/preEncounter/resources/common/types/CanonicalNonInsurancePayerAssociation.d.ts +8 -0
- package/dist/api/resources/preEncounter/resources/common/types/CanonicalNonInsurancePayerAssociation.js +5 -0
- package/dist/api/resources/preEncounter/resources/common/types/index.d.ts +1 -0
- package/dist/api/resources/preEncounter/resources/common/types/index.js +1 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.d.ts +34 -2
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +42 -10
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/Subscriber.d.ts +1 -0
- package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +16 -2
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +24 -10
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientRequest.d.ts +8 -1
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/Guarantor.d.ts +1 -1
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +2 -0
- package/dist/api/resources/serviceFacility/client/Client.js +1 -1
- package/dist/api/resources/serviceLines/resources/v2/client/Client.d.ts +21 -6
- package/dist/api/resources/serviceLines/resources/v2/client/Client.js +24 -9
- package/dist/api/resources/serviceLines/resources/v2/types/DrugIdentification.d.ts +1 -0
- package/dist/api/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +6 -6
- package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +2 -2
- package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.d.ts +3 -0
- package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +6 -2
- package/dist/api/resources/serviceLines/resources/v2/types/TestResult.d.ts +3 -10
- package/dist/api/resources/serviceLines/resources/v2/types/TestResultType.d.ts +8 -0
- package/dist/api/resources/serviceLines/resources/v2/types/TestResultType.js +10 -0
- package/dist/api/resources/serviceLines/resources/v2/types/index.d.ts +1 -0
- package/dist/api/resources/serviceLines/resources/v2/types/index.js +1 -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/diagnoses/client/delete.d.ts +15 -0
- package/dist/serialization/resources/diagnoses/client/delete.js +61 -0
- package/dist/serialization/resources/diagnoses/client/index.d.ts +3 -0
- package/dist/serialization/resources/diagnoses/client/index.js +32 -0
- package/dist/serialization/resources/diagnoses/client/requests/DiagnosisUpdate.d.ts +15 -0
- package/dist/serialization/resources/diagnoses/client/requests/DiagnosisUpdate.js +36 -0
- package/dist/serialization/resources/diagnoses/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/diagnoses/client/requests/index.js +5 -0
- package/dist/serialization/resources/diagnoses/client/update.d.ts +15 -0
- package/dist/serialization/resources/diagnoses/client/update.js +61 -0
- package/dist/serialization/resources/diagnoses/index.d.ts +1 -0
- package/dist/serialization/resources/diagnoses/index.js +1 -0
- package/dist/serialization/resources/diagnoses/types/DiagnosisNotFoundError.d.ts +14 -0
- package/dist/serialization/resources/diagnoses/types/DiagnosisNotFoundError.js +35 -0
- package/dist/serialization/resources/diagnoses/types/index.d.ts +1 -0
- package/dist/serialization/resources/diagnoses/types/index.js +1 -0
- package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +1 -0
- package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.js +1 -0
- package/dist/serialization/resources/encounters/resources/v4/types/EncounterBase.d.ts +1 -0
- package/dist/serialization/resources/encounters/resources/v4/types/EncounterBase.js +1 -0
- package/dist/serialization/resources/index.d.ts +1 -0
- package/dist/serialization/resources/index.js +1 -0
- package/dist/serialization/resources/individual/types/Patient.d.ts +2 -0
- package/dist/serialization/resources/individual/types/Patient.js +2 -0
- package/dist/serialization/resources/individual/types/PatientCreate.d.ts +2 -0
- package/dist/serialization/resources/individual/types/PatientCreate.js +2 -0
- package/dist/serialization/resources/individual/types/PatientNonInsurancePayerInfo.d.ts +14 -0
- package/dist/serialization/resources/individual/types/PatientNonInsurancePayerInfo.js +35 -0
- package/dist/serialization/resources/individual/types/PatientNonInsurancePayerInfoCreate.d.ts +14 -0
- package/dist/serialization/resources/individual/types/PatientNonInsurancePayerInfoCreate.js +35 -0
- package/dist/serialization/resources/individual/types/PatientUpdate.d.ts +2 -0
- package/dist/serialization/resources/individual/types/PatientUpdate.js +2 -0
- package/dist/serialization/resources/individual/types/index.d.ts +2 -0
- package/dist/serialization/resources/individual/types/index.js +2 -0
- package/dist/serialization/resources/nonInsurancePayers/resources/v1/types/CreateNonInsurancePayerRequest.d.ts +2 -0
- package/dist/serialization/resources/nonInsurancePayers/resources/v1/types/CreateNonInsurancePayerRequest.js +2 -0
- package/dist/serialization/resources/nonInsurancePayers/resources/v1/types/NonInsurancePayerAddressUpdate.d.ts +18 -0
- package/dist/serialization/resources/nonInsurancePayers/resources/v1/types/NonInsurancePayerAddressUpdate.js +42 -0
- package/dist/serialization/resources/nonInsurancePayers/resources/v1/types/NonInsurancePayerUpdateRequest.d.ts +2 -0
- package/dist/serialization/resources/nonInsurancePayers/resources/v1/types/NonInsurancePayerUpdateRequest.js +2 -0
- package/dist/serialization/resources/nonInsurancePayers/resources/v1/types/index.d.ts +1 -0
- package/dist/serialization/resources/nonInsurancePayers/resources/v1/types/index.js +1 -0
- package/dist/serialization/resources/preEncounter/resources/common/types/CanonicalNonInsurancePayerAssociation.d.ts +14 -0
- package/dist/serialization/resources/preEncounter/resources/common/types/CanonicalNonInsurancePayerAssociation.js +35 -0
- package/dist/serialization/resources/preEncounter/resources/common/types/index.d.ts +1 -0
- package/dist/serialization/resources/preEncounter/resources/common/types/index.js +1 -0
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/Subscriber.d.ts +2 -0
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/Subscriber.js +2 -0
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/Guarantor.d.ts +1 -1
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/Guarantor.js +1 -1
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +3 -0
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.js +3 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/DrugIdentification.d.ts +1 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/DrugIdentification.js +1 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +1 -1
- package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLine.js +1 -1
- package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +1 -1
- package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreate.js +1 -1
- package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.d.ts +4 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.js +4 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +1 -1
- package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.js +1 -1
- package/dist/serialization/resources/serviceLines/resources/v2/types/TestResult.d.ts +4 -8
- package/dist/serialization/resources/serviceLines/resources/v2/types/TestResult.js +4 -12
- package/dist/serialization/resources/serviceLines/resources/v2/types/TestResultType.d.ts +10 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/TestResultType.js +31 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/index.d.ts +1 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/index.js +1 -0
- package/package.json +1 -1
- package/reference.md +322 -12
- package/serialization/resources/diagnoses/client/delete.d.ts +15 -0
- package/serialization/resources/diagnoses/client/delete.js +61 -0
- package/serialization/resources/diagnoses/client/index.d.ts +3 -0
- package/serialization/resources/diagnoses/client/index.js +32 -0
- package/serialization/resources/diagnoses/client/requests/DiagnosisUpdate.d.ts +15 -0
- package/serialization/resources/diagnoses/client/requests/DiagnosisUpdate.js +36 -0
- package/serialization/resources/diagnoses/client/requests/index.d.ts +1 -0
- package/serialization/resources/diagnoses/client/requests/index.js +5 -0
- package/serialization/resources/diagnoses/client/update.d.ts +15 -0
- package/serialization/resources/diagnoses/client/update.js +61 -0
- package/serialization/resources/diagnoses/index.d.ts +1 -0
- package/serialization/resources/diagnoses/index.js +1 -0
- package/serialization/resources/diagnoses/types/DiagnosisNotFoundError.d.ts +14 -0
- package/serialization/resources/diagnoses/types/DiagnosisNotFoundError.js +35 -0
- package/serialization/resources/diagnoses/types/index.d.ts +1 -0
- package/serialization/resources/diagnoses/types/index.js +1 -0
- package/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +1 -0
- package/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.js +1 -0
- package/serialization/resources/encounters/resources/v4/types/EncounterBase.d.ts +1 -0
- package/serialization/resources/encounters/resources/v4/types/EncounterBase.js +1 -0
- package/serialization/resources/index.d.ts +1 -0
- package/serialization/resources/index.js +1 -0
- package/serialization/resources/individual/types/Patient.d.ts +2 -0
- package/serialization/resources/individual/types/Patient.js +2 -0
- package/serialization/resources/individual/types/PatientCreate.d.ts +2 -0
- package/serialization/resources/individual/types/PatientCreate.js +2 -0
- package/serialization/resources/individual/types/PatientNonInsurancePayerInfo.d.ts +14 -0
- package/serialization/resources/individual/types/PatientNonInsurancePayerInfo.js +35 -0
- package/serialization/resources/individual/types/PatientNonInsurancePayerInfoCreate.d.ts +14 -0
- package/serialization/resources/individual/types/PatientNonInsurancePayerInfoCreate.js +35 -0
- package/serialization/resources/individual/types/PatientUpdate.d.ts +2 -0
- package/serialization/resources/individual/types/PatientUpdate.js +2 -0
- package/serialization/resources/individual/types/index.d.ts +2 -0
- package/serialization/resources/individual/types/index.js +2 -0
- package/serialization/resources/nonInsurancePayers/resources/v1/types/CreateNonInsurancePayerRequest.d.ts +2 -0
- package/serialization/resources/nonInsurancePayers/resources/v1/types/CreateNonInsurancePayerRequest.js +2 -0
- package/serialization/resources/nonInsurancePayers/resources/v1/types/NonInsurancePayerAddressUpdate.d.ts +18 -0
- package/serialization/resources/nonInsurancePayers/resources/v1/types/NonInsurancePayerAddressUpdate.js +42 -0
- package/serialization/resources/nonInsurancePayers/resources/v1/types/NonInsurancePayerUpdateRequest.d.ts +2 -0
- package/serialization/resources/nonInsurancePayers/resources/v1/types/NonInsurancePayerUpdateRequest.js +2 -0
- package/serialization/resources/nonInsurancePayers/resources/v1/types/index.d.ts +1 -0
- package/serialization/resources/nonInsurancePayers/resources/v1/types/index.js +1 -0
- package/serialization/resources/preEncounter/resources/common/types/CanonicalNonInsurancePayerAssociation.d.ts +14 -0
- package/serialization/resources/preEncounter/resources/common/types/CanonicalNonInsurancePayerAssociation.js +35 -0
- package/serialization/resources/preEncounter/resources/common/types/index.d.ts +1 -0
- package/serialization/resources/preEncounter/resources/common/types/index.js +1 -0
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/Subscriber.d.ts +2 -0
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/Subscriber.js +2 -0
- package/serialization/resources/preEncounter/resources/patients/resources/v1/types/Guarantor.d.ts +1 -1
- package/serialization/resources/preEncounter/resources/patients/resources/v1/types/Guarantor.js +1 -1
- package/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +3 -0
- package/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.js +3 -0
- package/serialization/resources/serviceLines/resources/v2/types/DrugIdentification.d.ts +1 -0
- package/serialization/resources/serviceLines/resources/v2/types/DrugIdentification.js +1 -0
- package/serialization/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +1 -1
- package/serialization/resources/serviceLines/resources/v2/types/ServiceLine.js +1 -1
- package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +1 -1
- package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreate.js +1 -1
- package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.d.ts +4 -0
- package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.js +4 -0
- package/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +1 -1
- package/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.js +1 -1
- package/serialization/resources/serviceLines/resources/v2/types/TestResult.d.ts +4 -8
- package/serialization/resources/serviceLines/resources/v2/types/TestResult.js +4 -12
- package/serialization/resources/serviceLines/resources/v2/types/TestResultType.d.ts +10 -0
- package/serialization/resources/serviceLines/resources/v2/types/TestResultType.js +31 -0
- package/serialization/resources/serviceLines/resources/v2/types/index.d.ts +1 -0
- package/serialization/resources/serviceLines/resources/v2/types/index.js +1 -0
|
@@ -66,10 +66,10 @@ import * as CandidApi from "../../../../../index";
|
|
|
66
66
|
* },
|
|
67
67
|
* dateOfService: "2023-01-01",
|
|
68
68
|
* endDateOfService: "2023-01-03",
|
|
69
|
-
*
|
|
70
|
-
*
|
|
71
|
-
*
|
|
72
|
-
*
|
|
69
|
+
* testResults: [{
|
|
70
|
+
* resultType: CandidApi.serviceLines.v2.TestResultType.Hemoglobin,
|
|
71
|
+
* value: 51
|
|
72
|
+
* }]
|
|
73
73
|
* }
|
|
74
74
|
*/
|
|
75
75
|
export interface ServiceLine {
|
|
@@ -115,6 +115,6 @@ export interface ServiceLine {
|
|
|
115
115
|
description?: string;
|
|
116
116
|
dateOfService: string;
|
|
117
117
|
endDateOfService?: string;
|
|
118
|
-
/**
|
|
119
|
-
|
|
118
|
+
/** Maps to MEA-02 on the 837-P. No more than 5 test results may be submitted per service line. */
|
|
119
|
+
testResults?: CandidApi.serviceLines.v2.TestResult[];
|
|
120
120
|
}
|
|
@@ -31,6 +31,6 @@ export interface ServiceLineCreate {
|
|
|
31
31
|
* If not required by this implementation guide, do not send.
|
|
32
32
|
*/
|
|
33
33
|
orderingProvider?: CandidApi.encounterProviders.v2.OrderingProvider;
|
|
34
|
-
/**
|
|
35
|
-
|
|
34
|
+
/** Maps to MEA-02 on the 837-P. No more than 5 test results may be submitted per service line. */
|
|
35
|
+
testResults?: CandidApi.serviceLines.v2.TestResult[];
|
|
36
36
|
}
|
|
@@ -24,4 +24,7 @@ export interface ServiceLineCreateStandalone {
|
|
|
24
24
|
description?: string;
|
|
25
25
|
dateOfService?: string;
|
|
26
26
|
endDateOfService?: string;
|
|
27
|
+
drugIdentification?: CandidApi.serviceLines.v2.DrugIdentification;
|
|
28
|
+
/** Maps to MEA-02 on the 837-P. No more than 5 test results may be submitted per service line. */
|
|
29
|
+
testResults?: CandidApi.serviceLines.v2.TestResult[];
|
|
27
30
|
}
|
|
@@ -26,6 +26,10 @@ export interface ServiceLineUpdate {
|
|
|
26
26
|
/** date_of_service must be defined on either the encounter or the service lines but not both. */
|
|
27
27
|
dateOfService?: string;
|
|
28
28
|
endDateOfService?: string;
|
|
29
|
-
/**
|
|
30
|
-
|
|
29
|
+
/**
|
|
30
|
+
* Maps to MEA-02 on the 837-P. Updating test results utilizes PUT semantics,
|
|
31
|
+
* so the test results on the service line will be set to whatever inputs are provided. No more than 5 test
|
|
32
|
+
* results may be submitted per service line.
|
|
33
|
+
*/
|
|
34
|
+
testResults?: CandidApi.serviceLines.v2.TestResult[];
|
|
31
35
|
}
|
|
@@ -2,14 +2,7 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as CandidApi from "../../../../../index";
|
|
5
|
-
export
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
type: "hematocrit";
|
|
9
|
-
value: number;
|
|
10
|
-
}
|
|
11
|
-
interface Hemoglobin {
|
|
12
|
-
type: "hemoglobin";
|
|
13
|
-
value: number;
|
|
14
|
-
}
|
|
5
|
+
export interface TestResult {
|
|
6
|
+
value: number;
|
|
7
|
+
resultType: CandidApi.serviceLines.v2.TestResultType;
|
|
15
8
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.TestResultType = void 0;
|
|
7
|
+
exports.TestResultType = {
|
|
8
|
+
Hematocrit: "HEMATOCRIT",
|
|
9
|
+
Hemoglobin: "HEMOGLOBIN",
|
|
10
|
+
};
|
|
@@ -7,6 +7,7 @@ export * from "./ServiceLineAdjustment";
|
|
|
7
7
|
export * from "./ServiceLineDenialReason";
|
|
8
8
|
export * from "./DenialReasonContent";
|
|
9
9
|
export * from "./DrugIdentification";
|
|
10
|
+
export * from "./TestResultType";
|
|
10
11
|
export * from "./TestResult";
|
|
11
12
|
export * from "./ServiceIdQualifier";
|
|
12
13
|
export * from "./MeasurementUnitCode";
|
|
@@ -23,6 +23,7 @@ __exportStar(require("./ServiceLineAdjustment"), exports);
|
|
|
23
23
|
__exportStar(require("./ServiceLineDenialReason"), exports);
|
|
24
24
|
__exportStar(require("./DenialReasonContent"), exports);
|
|
25
25
|
__exportStar(require("./DrugIdentification"), exports);
|
|
26
|
+
__exportStar(require("./TestResultType"), exports);
|
|
26
27
|
__exportStar(require("./TestResult"), exports);
|
|
27
28
|
__exportStar(require("./ServiceIdQualifier"), exports);
|
|
28
29
|
__exportStar(require("./MeasurementUnitCode"), exports);
|
|
@@ -66,7 +66,7 @@ class V3 {
|
|
|
66
66
|
Authorization: yield this._getAuthorizationHeader(),
|
|
67
67
|
"X-Fern-Language": "JavaScript",
|
|
68
68
|
"X-Fern-SDK-Name": "candidhealth",
|
|
69
|
-
"X-Fern-SDK-Version": "0.34.
|
|
69
|
+
"X-Fern-SDK-Version": "0.34.9",
|
|
70
70
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
71
71
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
72
72
|
},
|
|
@@ -166,7 +166,7 @@ class V3 {
|
|
|
166
166
|
Authorization: yield this._getAuthorizationHeader(),
|
|
167
167
|
"X-Fern-Language": "JavaScript",
|
|
168
168
|
"X-Fern-SDK-Name": "candidhealth",
|
|
169
|
-
"X-Fern-SDK-Version": "0.34.
|
|
169
|
+
"X-Fern-SDK-Version": "0.34.9",
|
|
170
170
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
171
171
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
172
172
|
},
|
|
@@ -226,7 +226,7 @@ class V3 {
|
|
|
226
226
|
Authorization: yield this._getAuthorizationHeader(),
|
|
227
227
|
"X-Fern-Language": "JavaScript",
|
|
228
228
|
"X-Fern-SDK-Name": "candidhealth",
|
|
229
|
-
"X-Fern-SDK-Version": "0.34.
|
|
229
|
+
"X-Fern-SDK-Version": "0.34.9",
|
|
230
230
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
231
231
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
232
232
|
},
|
|
@@ -294,7 +294,7 @@ class V3 {
|
|
|
294
294
|
Authorization: yield this._getAuthorizationHeader(),
|
|
295
295
|
"X-Fern-Language": "JavaScript",
|
|
296
296
|
"X-Fern-SDK-Name": "candidhealth",
|
|
297
|
-
"X-Fern-SDK-Version": "0.34.
|
|
297
|
+
"X-Fern-SDK-Version": "0.34.9",
|
|
298
298
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
299
299
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
300
300
|
},
|
|
@@ -345,7 +345,7 @@ class V3 {
|
|
|
345
345
|
Authorization: yield this._getAuthorizationHeader(),
|
|
346
346
|
"X-Fern-Language": "JavaScript",
|
|
347
347
|
"X-Fern-SDK-Name": "candidhealth",
|
|
348
|
-
"X-Fern-SDK-Version": "0.34.
|
|
348
|
+
"X-Fern-SDK-Version": "0.34.9",
|
|
349
349
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
350
350
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
351
351
|
},
|
|
@@ -116,7 +116,7 @@ class V1 {
|
|
|
116
116
|
Authorization: yield this._getAuthorizationHeader(),
|
|
117
117
|
"X-Fern-Language": "JavaScript",
|
|
118
118
|
"X-Fern-SDK-Name": "candidhealth",
|
|
119
|
-
"X-Fern-SDK-Version": "0.34.
|
|
119
|
+
"X-Fern-SDK-Version": "0.34.9",
|
|
120
120
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
121
121
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
122
122
|
},
|
|
@@ -164,7 +164,7 @@ class V1 {
|
|
|
164
164
|
Authorization: yield this._getAuthorizationHeader(),
|
|
165
165
|
"X-Fern-Language": "JavaScript",
|
|
166
166
|
"X-Fern-SDK-Name": "candidhealth",
|
|
167
|
-
"X-Fern-SDK-Version": "0.34.
|
|
167
|
+
"X-Fern-SDK-Version": "0.34.9",
|
|
168
168
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
169
169
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
170
170
|
},
|
|
@@ -221,7 +221,7 @@ class V1 {
|
|
|
221
221
|
Authorization: yield this._getAuthorizationHeader(),
|
|
222
222
|
"X-Fern-Language": "JavaScript",
|
|
223
223
|
"X-Fern-SDK-Name": "candidhealth",
|
|
224
|
-
"X-Fern-SDK-Version": "0.34.
|
|
224
|
+
"X-Fern-SDK-Version": "0.34.9",
|
|
225
225
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
226
226
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
227
227
|
},
|
|
@@ -271,7 +271,7 @@ class V1 {
|
|
|
271
271
|
Authorization: yield this._getAuthorizationHeader(),
|
|
272
272
|
"X-Fern-Language": "JavaScript",
|
|
273
273
|
"X-Fern-SDK-Name": "candidhealth",
|
|
274
|
-
"X-Fern-SDK-Version": "0.34.
|
|
274
|
+
"X-Fern-SDK-Version": "0.34.9",
|
|
275
275
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
276
276
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
277
277
|
},
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as CandidApi from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
import { DiagnosisNotFoundError } from "../types/DiagnosisNotFoundError";
|
|
8
|
+
export declare const Error: core.serialization.Schema<serializers.diagnoses.delete.Error.Raw, CandidApi.diagnoses.delete.Error>;
|
|
9
|
+
export declare namespace Error {
|
|
10
|
+
type Raw = Error.DiagnosisNotFoundHttpError;
|
|
11
|
+
interface DiagnosisNotFoundHttpError {
|
|
12
|
+
errorName: "DiagnosisNotFoundHTTPError";
|
|
13
|
+
content: DiagnosisNotFoundError.Raw;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
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 __rest = (this && this.__rest) || function (s, e) {
|
|
29
|
+
var t = {};
|
|
30
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
31
|
+
t[p] = s[p];
|
|
32
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
33
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
34
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
35
|
+
t[p[i]] = s[p[i]];
|
|
36
|
+
}
|
|
37
|
+
return t;
|
|
38
|
+
};
|
|
39
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
|
+
exports.Error = void 0;
|
|
41
|
+
const CandidApi = __importStar(require("../../../../api/index"));
|
|
42
|
+
const core = __importStar(require("../../../../core"));
|
|
43
|
+
const DiagnosisNotFoundError_1 = require("../types/DiagnosisNotFoundError");
|
|
44
|
+
exports.Error = core.serialization
|
|
45
|
+
.union("errorName", {
|
|
46
|
+
DiagnosisNotFoundHTTPError: core.serialization.object({
|
|
47
|
+
content: DiagnosisNotFoundError_1.DiagnosisNotFoundError,
|
|
48
|
+
}),
|
|
49
|
+
})
|
|
50
|
+
.transform({
|
|
51
|
+
transform: (value) => {
|
|
52
|
+
switch (value.errorName) {
|
|
53
|
+
case "DiagnosisNotFoundHTTPError":
|
|
54
|
+
return CandidApi.diagnoses.delete.Error.diagnosisNotFoundHttpError(value.content);
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
untransform: (_a) => {
|
|
58
|
+
var { _visit } = _a, value = __rest(_a, ["_visit"]);
|
|
59
|
+
return value;
|
|
60
|
+
},
|
|
61
|
+
});
|
|
@@ -0,0 +1,32 @@
|
|
|
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
26
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.delete = exports.update = void 0;
|
|
30
|
+
exports.update = __importStar(require("./update"));
|
|
31
|
+
exports.delete = __importStar(require("./delete"));
|
|
32
|
+
__exportStar(require("./requests"), exports);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../../index";
|
|
5
|
+
import * as CandidApi from "../../../../../api/index";
|
|
6
|
+
import * as core from "../../../../../core";
|
|
7
|
+
import { DiagnosisTypeCode } from "../../types/DiagnosisTypeCode";
|
|
8
|
+
export declare const DiagnosisUpdate: core.serialization.Schema<serializers.DiagnosisUpdate.Raw, CandidApi.DiagnosisUpdate>;
|
|
9
|
+
export declare namespace DiagnosisUpdate {
|
|
10
|
+
interface Raw {
|
|
11
|
+
name?: string | null;
|
|
12
|
+
code_type?: DiagnosisTypeCode.Raw | null;
|
|
13
|
+
code?: string | null;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.DiagnosisUpdate = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../../core"));
|
|
31
|
+
const DiagnosisTypeCode_1 = require("../../types/DiagnosisTypeCode");
|
|
32
|
+
exports.DiagnosisUpdate = core.serialization.object({
|
|
33
|
+
name: core.serialization.string().optional(),
|
|
34
|
+
codeType: core.serialization.property("code_type", DiagnosisTypeCode_1.DiagnosisTypeCode.optional()),
|
|
35
|
+
code: core.serialization.string().optional(),
|
|
36
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DiagnosisUpdate } from "./DiagnosisUpdate";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DiagnosisUpdate = void 0;
|
|
4
|
+
var DiagnosisUpdate_1 = require("./DiagnosisUpdate");
|
|
5
|
+
Object.defineProperty(exports, "DiagnosisUpdate", { enumerable: true, get: function () { return DiagnosisUpdate_1.DiagnosisUpdate; } });
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as CandidApi from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
import { DiagnosisNotFoundError } from "../types/DiagnosisNotFoundError";
|
|
8
|
+
export declare const Error: core.serialization.Schema<serializers.diagnoses.update.Error.Raw, CandidApi.diagnoses.update.Error>;
|
|
9
|
+
export declare namespace Error {
|
|
10
|
+
type Raw = Error.DiagnosisNotFoundHttpError;
|
|
11
|
+
interface DiagnosisNotFoundHttpError {
|
|
12
|
+
errorName: "DiagnosisNotFoundHTTPError";
|
|
13
|
+
content: DiagnosisNotFoundError.Raw;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
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 __rest = (this && this.__rest) || function (s, e) {
|
|
29
|
+
var t = {};
|
|
30
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
31
|
+
t[p] = s[p];
|
|
32
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
33
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
34
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
35
|
+
t[p[i]] = s[p[i]];
|
|
36
|
+
}
|
|
37
|
+
return t;
|
|
38
|
+
};
|
|
39
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
|
+
exports.Error = void 0;
|
|
41
|
+
const CandidApi = __importStar(require("../../../../api/index"));
|
|
42
|
+
const core = __importStar(require("../../../../core"));
|
|
43
|
+
const DiagnosisNotFoundError_1 = require("../types/DiagnosisNotFoundError");
|
|
44
|
+
exports.Error = core.serialization
|
|
45
|
+
.union("errorName", {
|
|
46
|
+
DiagnosisNotFoundHTTPError: core.serialization.object({
|
|
47
|
+
content: DiagnosisNotFoundError_1.DiagnosisNotFoundError,
|
|
48
|
+
}),
|
|
49
|
+
})
|
|
50
|
+
.transform({
|
|
51
|
+
transform: (value) => {
|
|
52
|
+
switch (value.errorName) {
|
|
53
|
+
case "DiagnosisNotFoundHTTPError":
|
|
54
|
+
return CandidApi.diagnoses.update.Error.diagnosisNotFoundHttpError(value.content);
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
untransform: (_a) => {
|
|
58
|
+
var { _visit } = _a, value = __rest(_a, ["_visit"]);
|
|
59
|
+
return value;
|
|
60
|
+
},
|
|
61
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as CandidApi from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
import { DiagnosisId } from "./DiagnosisId";
|
|
8
|
+
export declare const DiagnosisNotFoundError: core.serialization.ObjectSchema<serializers.DiagnosisNotFoundError.Raw, CandidApi.DiagnosisNotFoundError>;
|
|
9
|
+
export declare namespace DiagnosisNotFoundError {
|
|
10
|
+
interface Raw {
|
|
11
|
+
diagnosis_id?: DiagnosisId.Raw | null;
|
|
12
|
+
message: string;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.DiagnosisNotFoundError = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../core"));
|
|
31
|
+
const DiagnosisId_1 = require("./DiagnosisId");
|
|
32
|
+
exports.DiagnosisNotFoundError = core.serialization.object({
|
|
33
|
+
diagnosisId: core.serialization.property("diagnosis_id", DiagnosisId_1.DiagnosisId.optional()),
|
|
34
|
+
message: core.serialization.string(),
|
|
35
|
+
});
|
|
@@ -19,3 +19,4 @@ __exportStar(require("./DiagnosisCreate"), exports);
|
|
|
19
19
|
__exportStar(require("./StandaloneDiagnosisCreate"), exports);
|
|
20
20
|
__exportStar(require("./DiagnosisTypeCode"), exports);
|
|
21
21
|
__exportStar(require("./Diagnosis"), exports);
|
|
22
|
+
__exportStar(require("./DiagnosisNotFoundError"), exports);
|
package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts
CHANGED
|
@@ -68,5 +68,6 @@ export declare namespace EncounterUpdate {
|
|
|
68
68
|
supervising_provider?: SupervisingProviderUpdate.Raw | null;
|
|
69
69
|
referring_provider?: ReferringProviderUpdate.Raw | null;
|
|
70
70
|
initial_referring_provider?: InitialReferringProviderUpdate.Raw | null;
|
|
71
|
+
referral_number?: string | null;
|
|
71
72
|
}
|
|
72
73
|
}
|
package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.js
CHANGED
|
@@ -90,4 +90,5 @@ exports.EncounterUpdate = core.serialization.object({
|
|
|
90
90
|
supervisingProvider: core.serialization.property("supervising_provider", SupervisingProviderUpdate_1.SupervisingProviderUpdate.optional()),
|
|
91
91
|
referringProvider: core.serialization.property("referring_provider", ReferringProviderUpdate_1.ReferringProviderUpdate.optional()),
|
|
92
92
|
initialReferringProvider: core.serialization.property("initial_referring_provider", InitialReferringProviderUpdate_1.InitialReferringProviderUpdate.optional()),
|
|
93
|
+
referralNumber: core.serialization.property("referral_number", core.serialization.string().optional()),
|
|
93
94
|
});
|
|
@@ -58,4 +58,5 @@ exports.EncounterBase = core.serialization.object({
|
|
|
58
58
|
onsetOfCurrentIllnessOrSymptomDate: core.serialization.property("onset_of_current_illness_or_symptom_date", core.serialization.string().optional()),
|
|
59
59
|
lastMenstrualPeriodDate: core.serialization.property("last_menstrual_period_date", core.serialization.string().optional()),
|
|
60
60
|
delayReasonCode: core.serialization.property("delay_reason_code", DelayReasonCode_1.DelayReasonCode.optional()),
|
|
61
|
+
referralNumber: core.serialization.property("referral_number", core.serialization.string().optional()),
|
|
61
62
|
});
|
|
@@ -85,3 +85,4 @@ __exportStar(require("./serviceFacility/types"), exports);
|
|
|
85
85
|
exports.tags = __importStar(require("./tags"));
|
|
86
86
|
__exportStar(require("./tags/types"), exports);
|
|
87
87
|
exports.eligibility = __importStar(require("./eligibility"));
|
|
88
|
+
__exportStar(require("./diagnoses/client/requests"), exports);
|
|
@@ -8,6 +8,7 @@ import { IndividualId } from "./IndividualId";
|
|
|
8
8
|
import { PhoneNumber } from "../../commons/types/PhoneNumber";
|
|
9
9
|
import { Email } from "../../commons/types/Email";
|
|
10
10
|
import { NonInsurancePayer } from "../../nonInsurancePayers/resources/v1/types/NonInsurancePayer";
|
|
11
|
+
import { PatientNonInsurancePayerInfo } from "./PatientNonInsurancePayerInfo";
|
|
11
12
|
import { PatientBase } from "./PatientBase";
|
|
12
13
|
export declare const Patient: core.serialization.ObjectSchema<serializers.Patient.Raw, CandidApi.Patient>;
|
|
13
14
|
export declare namespace Patient {
|
|
@@ -18,5 +19,6 @@ export declare namespace Patient {
|
|
|
18
19
|
email?: Email.Raw | null;
|
|
19
20
|
email_consent: boolean;
|
|
20
21
|
non_insurance_payers: NonInsurancePayer.Raw[];
|
|
22
|
+
non_insurance_payers_info: PatientNonInsurancePayerInfo.Raw[];
|
|
21
23
|
}
|
|
22
24
|
}
|
|
@@ -32,6 +32,7 @@ const IndividualId_1 = require("./IndividualId");
|
|
|
32
32
|
const PhoneNumber_1 = require("../../commons/types/PhoneNumber");
|
|
33
33
|
const Email_1 = require("../../commons/types/Email");
|
|
34
34
|
const NonInsurancePayer_1 = require("../../nonInsurancePayers/resources/v1/types/NonInsurancePayer");
|
|
35
|
+
const PatientNonInsurancePayerInfo_1 = require("./PatientNonInsurancePayerInfo");
|
|
35
36
|
const PatientBase_1 = require("./PatientBase");
|
|
36
37
|
exports.Patient = core.serialization
|
|
37
38
|
.object({
|
|
@@ -41,5 +42,6 @@ exports.Patient = core.serialization
|
|
|
41
42
|
email: Email_1.Email.optional(),
|
|
42
43
|
emailConsent: core.serialization.property("email_consent", core.serialization.boolean()),
|
|
43
44
|
nonInsurancePayers: core.serialization.property("non_insurance_payers", core.serialization.list(NonInsurancePayer_1.NonInsurancePayer)),
|
|
45
|
+
nonInsurancePayersInfo: core.serialization.property("non_insurance_payers_info", core.serialization.list(PatientNonInsurancePayerInfo_1.PatientNonInsurancePayerInfo)),
|
|
44
46
|
})
|
|
45
47
|
.extend(PatientBase_1.PatientBase);
|
|
@@ -7,6 +7,7 @@ import * as core from "../../../../core";
|
|
|
7
7
|
import { PhoneNumber } from "../../commons/types/PhoneNumber";
|
|
8
8
|
import { Email } from "../../commons/types/Email";
|
|
9
9
|
import { NonInsurancePayerId } from "../../nonInsurancePayers/resources/v1/types/NonInsurancePayerId";
|
|
10
|
+
import { PatientNonInsurancePayerInfoCreate } from "./PatientNonInsurancePayerInfoCreate";
|
|
10
11
|
import { PatientBase } from "./PatientBase";
|
|
11
12
|
export declare const PatientCreate: core.serialization.ObjectSchema<serializers.PatientCreate.Raw, CandidApi.PatientCreate>;
|
|
12
13
|
export declare namespace PatientCreate {
|
|
@@ -15,6 +16,7 @@ export declare namespace PatientCreate {
|
|
|
15
16
|
phone_consent?: boolean | null;
|
|
16
17
|
email?: Email.Raw | null;
|
|
17
18
|
non_insurance_payers?: NonInsurancePayerId.Raw[] | null;
|
|
19
|
+
non_insurance_payers_info?: PatientNonInsurancePayerInfoCreate.Raw[] | null;
|
|
18
20
|
email_consent?: boolean | null;
|
|
19
21
|
}
|
|
20
22
|
}
|