candidhealth 1.13.0 → 1.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Client.d.ts +0 -3
- package/Client.js +10 -15
- package/api/resources/commons/types/ProcedureModifier.d.ts +3 -0
- package/api/resources/commons/types/ProcedureModifier.js +3 -0
- package/api/resources/encounters/resources/v4/client/Client.d.ts +97 -0
- package/api/resources/encounters/resources/v4/client/Client.js +312 -0
- package/api/resources/encounters/resources/v4/client/createFromPreEncounterPatientUniversal.d.ts +67 -0
- package/api/resources/encounters/resources/v4/client/createFromPreEncounterPatientUniversal.js +143 -0
- package/api/resources/encounters/resources/v4/client/createUniversal.d.ts +91 -0
- package/api/resources/encounters/resources/v4/client/createUniversal.js +187 -0
- package/api/resources/encounters/resources/v4/client/index.d.ts +3 -0
- package/api/resources/encounters/resources/v4/client/index.js +4 -1
- package/api/resources/encounters/resources/v4/client/updateUniversal.d.ts +67 -0
- package/api/resources/encounters/resources/v4/client/updateUniversal.js +143 -0
- package/api/resources/encountersUniversal/types/UniversalEncounterCreate.d.ts +46 -0
- package/api/resources/encountersUniversal/types/UniversalEncounterCreate.js +3 -0
- package/api/resources/encountersUniversal/types/UniversalEncounterCreateFromPreEncounter.d.ts +44 -0
- package/api/resources/encountersUniversal/types/UniversalEncounterCreateFromPreEncounter.js +3 -0
- package/api/resources/encountersUniversal/types/UniversalEncounterUpdate.d.ts +36 -0
- package/api/resources/encountersUniversal/types/UniversalEncounterUpdate.js +3 -0
- package/api/resources/encountersUniversal/types/index.d.ts +3 -0
- package/api/resources/encountersUniversal/types/index.js +3 -0
- package/api/resources/healthCareCodeInformation/resources/v1/types/AdmittingDiagnosisNew.d.ts +8 -0
- package/api/resources/healthCareCodeInformation/resources/v1/types/AdmittingDiagnosisNew.js +3 -0
- package/api/resources/healthCareCodeInformation/resources/v1/types/ConditionInformationNew.d.ts +8 -0
- package/api/resources/healthCareCodeInformation/resources/v1/types/ConditionInformationNew.js +3 -0
- package/api/resources/healthCareCodeInformation/resources/v1/types/DiagnosisRelatedGroupNew.d.ts +8 -0
- package/api/resources/healthCareCodeInformation/resources/v1/types/DiagnosisRelatedGroupNew.js +3 -0
- package/api/resources/healthCareCodeInformation/resources/v1/types/ExternalCauseOfInjuryNew.d.ts +9 -0
- package/api/resources/healthCareCodeInformation/resources/v1/types/ExternalCauseOfInjuryNew.js +3 -0
- package/api/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationCreate.d.ts +27 -0
- package/api/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationCreate.js +3 -0
- package/api/resources/healthCareCodeInformation/resources/v1/types/OccurrenceInformationNew.d.ts +15 -0
- package/api/resources/healthCareCodeInformation/resources/v1/types/OccurrenceInformationNew.js +3 -0
- package/api/resources/healthCareCodeInformation/resources/v1/types/OccurrenceSpanInformationNew.d.ts +9 -0
- package/api/resources/healthCareCodeInformation/resources/v1/types/OccurrenceSpanInformationNew.js +3 -0
- package/api/resources/healthCareCodeInformation/resources/v1/types/OtherDiagnosisInformationNew.d.ts +9 -0
- package/api/resources/healthCareCodeInformation/resources/v1/types/OtherDiagnosisInformationNew.js +3 -0
- package/api/resources/healthCareCodeInformation/resources/v1/types/OtherProcedureInformationNew.d.ts +15 -0
- package/api/resources/healthCareCodeInformation/resources/v1/types/OtherProcedureInformationNew.js +3 -0
- package/api/resources/healthCareCodeInformation/resources/v1/types/PatientReasonForVisitNew.d.ts +8 -0
- package/api/resources/healthCareCodeInformation/resources/v1/types/PatientReasonForVisitNew.js +3 -0
- package/api/resources/healthCareCodeInformation/resources/v1/types/PrincipalDiagnosisNew.d.ts +9 -0
- package/api/resources/healthCareCodeInformation/resources/v1/types/PrincipalDiagnosisNew.js +3 -0
- package/api/resources/healthCareCodeInformation/resources/v1/types/PrincipalProcedureInformationNew.d.ts +15 -0
- package/api/resources/healthCareCodeInformation/resources/v1/types/PrincipalProcedureInformationNew.js +3 -0
- package/api/resources/healthCareCodeInformation/resources/v1/types/TreatmentCodeInformationNew.d.ts +8 -0
- package/api/resources/healthCareCodeInformation/resources/v1/types/TreatmentCodeInformationNew.js +3 -0
- package/api/resources/healthCareCodeInformation/resources/v1/types/ValueInformationNew.d.ts +9 -0
- package/api/resources/healthCareCodeInformation/resources/v1/types/ValueInformationNew.js +3 -0
- package/api/resources/healthCareCodeInformation/resources/v1/types/index.d.ts +14 -0
- package/api/resources/healthCareCodeInformation/resources/v1/types/index.js +14 -0
- package/api/resources/serviceFacility/index.d.ts +0 -1
- package/api/resources/serviceFacility/index.js +0 -1
- package/api/resources/serviceLines/resources/v2/types/UniversalServiceLineCreate.d.ts +8 -0
- package/api/resources/serviceLines/resources/v2/types/UniversalServiceLineCreate.js +3 -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/x12/resources/v1/types/TypeOfBillCompositeUpdate.d.ts +27 -0
- package/api/resources/x12/resources/v1/types/TypeOfBillCompositeUpdate.js +3 -0
- package/api/resources/x12/resources/v1/types/index.d.ts +1 -0
- package/api/resources/x12/resources/v1/types/index.js +1 -0
- package/dist/Client.d.ts +0 -3
- package/dist/Client.js +10 -15
- package/dist/api/resources/commons/types/ProcedureModifier.d.ts +3 -0
- package/dist/api/resources/commons/types/ProcedureModifier.js +3 -0
- package/dist/api/resources/encounters/resources/v4/client/Client.d.ts +97 -0
- package/dist/api/resources/encounters/resources/v4/client/Client.js +312 -0
- package/dist/api/resources/encounters/resources/v4/client/createFromPreEncounterPatientUniversal.d.ts +67 -0
- package/dist/api/resources/encounters/resources/v4/client/createFromPreEncounterPatientUniversal.js +143 -0
- package/dist/api/resources/encounters/resources/v4/client/createUniversal.d.ts +91 -0
- package/dist/api/resources/encounters/resources/v4/client/createUniversal.js +187 -0
- package/dist/api/resources/encounters/resources/v4/client/index.d.ts +3 -0
- package/dist/api/resources/encounters/resources/v4/client/index.js +4 -1
- package/dist/api/resources/encounters/resources/v4/client/updateUniversal.d.ts +67 -0
- package/dist/api/resources/encounters/resources/v4/client/updateUniversal.js +143 -0
- package/dist/api/resources/encountersUniversal/types/UniversalEncounterCreate.d.ts +46 -0
- package/dist/api/resources/encountersUniversal/types/UniversalEncounterCreate.js +3 -0
- package/dist/api/resources/encountersUniversal/types/UniversalEncounterCreateFromPreEncounter.d.ts +44 -0
- package/dist/api/resources/encountersUniversal/types/UniversalEncounterCreateFromPreEncounter.js +3 -0
- package/dist/api/resources/encountersUniversal/types/UniversalEncounterUpdate.d.ts +36 -0
- package/dist/api/resources/encountersUniversal/types/UniversalEncounterUpdate.js +3 -0
- package/dist/api/resources/encountersUniversal/types/index.d.ts +3 -0
- package/dist/api/resources/encountersUniversal/types/index.js +3 -0
- package/dist/api/resources/healthCareCodeInformation/resources/v1/types/AdmittingDiagnosisNew.d.ts +8 -0
- package/dist/api/resources/healthCareCodeInformation/resources/v1/types/AdmittingDiagnosisNew.js +3 -0
- package/dist/api/resources/healthCareCodeInformation/resources/v1/types/ConditionInformationNew.d.ts +8 -0
- package/dist/api/resources/healthCareCodeInformation/resources/v1/types/ConditionInformationNew.js +3 -0
- package/dist/api/resources/healthCareCodeInformation/resources/v1/types/DiagnosisRelatedGroupNew.d.ts +8 -0
- package/dist/api/resources/healthCareCodeInformation/resources/v1/types/DiagnosisRelatedGroupNew.js +3 -0
- package/dist/api/resources/healthCareCodeInformation/resources/v1/types/ExternalCauseOfInjuryNew.d.ts +9 -0
- package/dist/api/resources/healthCareCodeInformation/resources/v1/types/ExternalCauseOfInjuryNew.js +3 -0
- package/dist/api/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationCreate.d.ts +27 -0
- package/dist/api/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationCreate.js +3 -0
- package/dist/api/resources/healthCareCodeInformation/resources/v1/types/OccurrenceInformationNew.d.ts +15 -0
- package/dist/api/resources/healthCareCodeInformation/resources/v1/types/OccurrenceInformationNew.js +3 -0
- package/dist/api/resources/healthCareCodeInformation/resources/v1/types/OccurrenceSpanInformationNew.d.ts +9 -0
- package/dist/api/resources/healthCareCodeInformation/resources/v1/types/OccurrenceSpanInformationNew.js +3 -0
- package/dist/api/resources/healthCareCodeInformation/resources/v1/types/OtherDiagnosisInformationNew.d.ts +9 -0
- package/dist/api/resources/healthCareCodeInformation/resources/v1/types/OtherDiagnosisInformationNew.js +3 -0
- package/dist/api/resources/healthCareCodeInformation/resources/v1/types/OtherProcedureInformationNew.d.ts +15 -0
- package/dist/api/resources/healthCareCodeInformation/resources/v1/types/OtherProcedureInformationNew.js +3 -0
- package/dist/api/resources/healthCareCodeInformation/resources/v1/types/PatientReasonForVisitNew.d.ts +8 -0
- package/dist/api/resources/healthCareCodeInformation/resources/v1/types/PatientReasonForVisitNew.js +3 -0
- package/dist/api/resources/healthCareCodeInformation/resources/v1/types/PrincipalDiagnosisNew.d.ts +9 -0
- package/dist/api/resources/healthCareCodeInformation/resources/v1/types/PrincipalDiagnosisNew.js +3 -0
- package/dist/api/resources/healthCareCodeInformation/resources/v1/types/PrincipalProcedureInformationNew.d.ts +15 -0
- package/dist/api/resources/healthCareCodeInformation/resources/v1/types/PrincipalProcedureInformationNew.js +3 -0
- package/dist/api/resources/healthCareCodeInformation/resources/v1/types/TreatmentCodeInformationNew.d.ts +8 -0
- package/dist/api/resources/healthCareCodeInformation/resources/v1/types/TreatmentCodeInformationNew.js +3 -0
- package/dist/api/resources/healthCareCodeInformation/resources/v1/types/ValueInformationNew.d.ts +9 -0
- package/dist/api/resources/healthCareCodeInformation/resources/v1/types/ValueInformationNew.js +3 -0
- package/dist/api/resources/healthCareCodeInformation/resources/v1/types/index.d.ts +14 -0
- package/dist/api/resources/healthCareCodeInformation/resources/v1/types/index.js +14 -0
- package/dist/api/resources/serviceFacility/index.d.ts +0 -1
- package/dist/api/resources/serviceFacility/index.js +0 -1
- package/dist/api/resources/serviceLines/resources/v2/types/UniversalServiceLineCreate.d.ts +8 -0
- package/dist/api/resources/serviceLines/resources/v2/types/UniversalServiceLineCreate.js +3 -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/x12/resources/v1/types/TypeOfBillCompositeUpdate.d.ts +27 -0
- package/dist/api/resources/x12/resources/v1/types/TypeOfBillCompositeUpdate.js +3 -0
- package/dist/api/resources/x12/resources/v1/types/index.d.ts +1 -0
- package/dist/api/resources/x12/resources/v1/types/index.js +1 -0
- package/dist/serialization/resources/commons/types/ProcedureModifier.d.ts +1 -1
- package/dist/serialization/resources/commons/types/ProcedureModifier.js +1 -0
- package/dist/serialization/resources/encounters/resources/v4/client/createFromPreEncounterPatientUniversal.d.ts +46 -0
- package/dist/serialization/resources/encounters/resources/v4/client/createFromPreEncounterPatientUniversal.js +110 -0
- package/dist/serialization/resources/encounters/resources/v4/client/createUniversal.d.ts +66 -0
- package/dist/serialization/resources/encounters/resources/v4/client/createUniversal.js +134 -0
- package/dist/serialization/resources/encounters/resources/v4/client/index.d.ts +3 -0
- package/dist/serialization/resources/encounters/resources/v4/client/index.js +4 -1
- package/dist/serialization/resources/encounters/resources/v4/client/updateUniversal.d.ts +47 -0
- package/dist/serialization/resources/encounters/resources/v4/client/updateUniversal.js +111 -0
- package/dist/serialization/resources/encountersUniversal/types/UniversalEncounterCreate.d.ts +36 -0
- package/dist/serialization/resources/encountersUniversal/types/UniversalEncounterCreate.js +70 -0
- package/dist/serialization/resources/encountersUniversal/types/UniversalEncounterCreateFromPreEncounter.d.ts +34 -0
- package/dist/serialization/resources/encountersUniversal/types/UniversalEncounterCreateFromPreEncounter.js +68 -0
- package/dist/serialization/resources/encountersUniversal/types/UniversalEncounterUpdate.d.ts +29 -0
- package/dist/serialization/resources/encountersUniversal/types/UniversalEncounterUpdate.js +63 -0
- package/dist/serialization/resources/encountersUniversal/types/index.d.ts +3 -0
- package/dist/serialization/resources/encountersUniversal/types/index.js +3 -0
- package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/AdmittingDiagnosisNew.d.ts +13 -0
- package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/AdmittingDiagnosisNew.js +47 -0
- package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/ConditionInformationNew.d.ts +13 -0
- package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/ConditionInformationNew.js +47 -0
- package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/DiagnosisRelatedGroupNew.d.ts +13 -0
- package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/DiagnosisRelatedGroupNew.js +47 -0
- package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/ExternalCauseOfInjuryNew.d.ts +15 -0
- package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/ExternalCauseOfInjuryNew.js +49 -0
- package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationCreate.d.ts +34 -0
- package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationCreate.js +66 -0
- package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/OccurrenceInformationNew.d.ts +15 -0
- package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/OccurrenceInformationNew.js +49 -0
- package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/OccurrenceSpanInformationNew.d.ts +15 -0
- package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/OccurrenceSpanInformationNew.js +49 -0
- package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/OtherDiagnosisInformationNew.d.ts +15 -0
- package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/OtherDiagnosisInformationNew.js +49 -0
- package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/OtherProcedureInformationNew.d.ts +15 -0
- package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/OtherProcedureInformationNew.js +49 -0
- package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/PatientReasonForVisitNew.d.ts +13 -0
- package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/PatientReasonForVisitNew.js +47 -0
- package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/PrincipalDiagnosisNew.d.ts +15 -0
- package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/PrincipalDiagnosisNew.js +49 -0
- package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/PrincipalProcedureInformationNew.d.ts +15 -0
- package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/PrincipalProcedureInformationNew.js +49 -0
- package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/TreatmentCodeInformationNew.d.ts +13 -0
- package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/TreatmentCodeInformationNew.js +47 -0
- package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/ValueInformationNew.d.ts +15 -0
- package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/ValueInformationNew.js +49 -0
- package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/index.d.ts +14 -0
- package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/index.js +14 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/UniversalServiceLineCreate.d.ts +12 -0
- package/dist/{api/resources/serviceFacility/client/index.js → serialization/resources/serviceLines/resources/v2/types/UniversalServiceLineCreate.js} +11 -2
- 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/dist/serialization/resources/x12/resources/v1/types/TypeOfBillCompositeUpdate.d.ts +15 -0
- package/{api/resources/serviceFacility/client/update.js → dist/serialization/resources/x12/resources/v1/types/TypeOfBillCompositeUpdate.js} +14 -19
- package/dist/serialization/resources/x12/resources/v1/types/index.d.ts +1 -0
- package/dist/serialization/resources/x12/resources/v1/types/index.js +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +236 -58
- package/serialization/resources/commons/types/ProcedureModifier.d.ts +1 -1
- package/serialization/resources/commons/types/ProcedureModifier.js +1 -0
- package/serialization/resources/encounters/resources/v4/client/createFromPreEncounterPatientUniversal.d.ts +46 -0
- package/serialization/resources/encounters/resources/v4/client/createFromPreEncounterPatientUniversal.js +110 -0
- package/serialization/resources/encounters/resources/v4/client/createUniversal.d.ts +66 -0
- package/serialization/resources/encounters/resources/v4/client/createUniversal.js +134 -0
- package/serialization/resources/encounters/resources/v4/client/index.d.ts +3 -0
- package/serialization/resources/encounters/resources/v4/client/index.js +4 -1
- package/serialization/resources/encounters/resources/v4/client/updateUniversal.d.ts +47 -0
- package/serialization/resources/encounters/resources/v4/client/updateUniversal.js +111 -0
- package/serialization/resources/encountersUniversal/types/UniversalEncounterCreate.d.ts +36 -0
- package/serialization/resources/encountersUniversal/types/UniversalEncounterCreate.js +70 -0
- package/serialization/resources/encountersUniversal/types/UniversalEncounterCreateFromPreEncounter.d.ts +34 -0
- package/serialization/resources/encountersUniversal/types/UniversalEncounterCreateFromPreEncounter.js +68 -0
- package/serialization/resources/encountersUniversal/types/UniversalEncounterUpdate.d.ts +29 -0
- package/serialization/resources/encountersUniversal/types/UniversalEncounterUpdate.js +63 -0
- package/serialization/resources/encountersUniversal/types/index.d.ts +3 -0
- package/serialization/resources/encountersUniversal/types/index.js +3 -0
- package/serialization/resources/healthCareCodeInformation/resources/v1/types/AdmittingDiagnosisNew.d.ts +13 -0
- package/serialization/resources/healthCareCodeInformation/resources/v1/types/AdmittingDiagnosisNew.js +47 -0
- package/serialization/resources/healthCareCodeInformation/resources/v1/types/ConditionInformationNew.d.ts +13 -0
- package/serialization/resources/healthCareCodeInformation/resources/v1/types/ConditionInformationNew.js +47 -0
- package/serialization/resources/healthCareCodeInformation/resources/v1/types/DiagnosisRelatedGroupNew.d.ts +13 -0
- package/serialization/resources/healthCareCodeInformation/resources/v1/types/DiagnosisRelatedGroupNew.js +47 -0
- package/serialization/resources/healthCareCodeInformation/resources/v1/types/ExternalCauseOfInjuryNew.d.ts +15 -0
- package/serialization/resources/healthCareCodeInformation/resources/v1/types/ExternalCauseOfInjuryNew.js +49 -0
- package/serialization/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationCreate.d.ts +34 -0
- package/serialization/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationCreate.js +66 -0
- package/serialization/resources/healthCareCodeInformation/resources/v1/types/OccurrenceInformationNew.d.ts +15 -0
- package/serialization/resources/healthCareCodeInformation/resources/v1/types/OccurrenceInformationNew.js +49 -0
- package/serialization/resources/healthCareCodeInformation/resources/v1/types/OccurrenceSpanInformationNew.d.ts +15 -0
- package/serialization/resources/healthCareCodeInformation/resources/v1/types/OccurrenceSpanInformationNew.js +49 -0
- package/serialization/resources/healthCareCodeInformation/resources/v1/types/OtherDiagnosisInformationNew.d.ts +15 -0
- package/serialization/resources/healthCareCodeInformation/resources/v1/types/OtherDiagnosisInformationNew.js +49 -0
- package/serialization/resources/healthCareCodeInformation/resources/v1/types/OtherProcedureInformationNew.d.ts +15 -0
- package/serialization/resources/healthCareCodeInformation/resources/v1/types/OtherProcedureInformationNew.js +49 -0
- package/serialization/resources/healthCareCodeInformation/resources/v1/types/PatientReasonForVisitNew.d.ts +13 -0
- package/serialization/resources/healthCareCodeInformation/resources/v1/types/PatientReasonForVisitNew.js +47 -0
- package/serialization/resources/healthCareCodeInformation/resources/v1/types/PrincipalDiagnosisNew.d.ts +15 -0
- package/serialization/resources/healthCareCodeInformation/resources/v1/types/PrincipalDiagnosisNew.js +49 -0
- package/serialization/resources/healthCareCodeInformation/resources/v1/types/PrincipalProcedureInformationNew.d.ts +15 -0
- package/serialization/resources/healthCareCodeInformation/resources/v1/types/PrincipalProcedureInformationNew.js +49 -0
- package/serialization/resources/healthCareCodeInformation/resources/v1/types/TreatmentCodeInformationNew.d.ts +13 -0
- package/serialization/resources/healthCareCodeInformation/resources/v1/types/TreatmentCodeInformationNew.js +47 -0
- package/serialization/resources/healthCareCodeInformation/resources/v1/types/ValueInformationNew.d.ts +15 -0
- package/serialization/resources/healthCareCodeInformation/resources/v1/types/ValueInformationNew.js +49 -0
- package/serialization/resources/healthCareCodeInformation/resources/v1/types/index.d.ts +14 -0
- package/serialization/resources/healthCareCodeInformation/resources/v1/types/index.js +14 -0
- package/serialization/resources/serviceLines/resources/v2/types/UniversalServiceLineCreate.d.ts +12 -0
- package/{api/resources/serviceFacility/client/index.js → serialization/resources/serviceLines/resources/v2/types/UniversalServiceLineCreate.js} +11 -2
- package/serialization/resources/serviceLines/resources/v2/types/index.d.ts +1 -0
- package/serialization/resources/serviceLines/resources/v2/types/index.js +1 -0
- package/serialization/resources/x12/resources/v1/types/TypeOfBillCompositeUpdate.d.ts +15 -0
- package/{dist/api/resources/serviceFacility/client/update.js → serialization/resources/x12/resources/v1/types/TypeOfBillCompositeUpdate.js} +14 -19
- package/serialization/resources/x12/resources/v1/types/index.d.ts +1 -0
- package/serialization/resources/x12/resources/v1/types/index.js +1 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/resources/serviceFacility/client/Client.d.ts +0 -25
- package/api/resources/serviceFacility/client/Client.js +0 -119
- package/api/resources/serviceFacility/client/index.d.ts +0 -1
- package/api/resources/serviceFacility/client/update.d.ts +0 -19
- package/dist/api/resources/serviceFacility/client/Client.d.ts +0 -25
- package/dist/api/resources/serviceFacility/client/Client.js +0 -119
- package/dist/api/resources/serviceFacility/client/index.d.ts +0 -1
- package/dist/api/resources/serviceFacility/client/update.d.ts +0 -19
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
37
|
+
var t = {};
|
|
38
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
39
|
+
t[p] = s[p];
|
|
40
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
41
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
42
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
43
|
+
t[p[i]] = s[p[i]];
|
|
44
|
+
}
|
|
45
|
+
return t;
|
|
46
|
+
};
|
|
47
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
|
+
exports.Error = void 0;
|
|
49
|
+
const CandidApi = __importStar(require("../../../../../../api/index"));
|
|
50
|
+
const core = __importStar(require("../../../../../../core"));
|
|
51
|
+
const EntityNotFoundErrorMessage_1 = require("../../../../commons/types/EntityNotFoundErrorMessage");
|
|
52
|
+
const RequestValidationError_1 = require("../../../../commons/types/RequestValidationError");
|
|
53
|
+
const UnauthorizedErrorMessage_1 = require("../../../../commons/types/UnauthorizedErrorMessage");
|
|
54
|
+
const CashPayPayerErrorMessage_1 = require("../types/CashPayPayerErrorMessage");
|
|
55
|
+
const EncounterExternalIdUniquenessErrorType_1 = require("../types/EncounterExternalIdUniquenessErrorType");
|
|
56
|
+
const EncounterGuarantorMissingContactInfoErrorType_1 = require("../types/EncounterGuarantorMissingContactInfoErrorType");
|
|
57
|
+
const EncounterPatientControlNumberUniquenessErrorType_1 = require("../types/EncounterPatientControlNumberUniquenessErrorType");
|
|
58
|
+
const EncounterRenderingOrAttendingProviderRequiredError_1 = require("../types/EncounterRenderingOrAttendingProviderRequiredError");
|
|
59
|
+
const InvalidTagNamesErrorType_1 = require("../types/InvalidTagNamesErrorType");
|
|
60
|
+
const PayerPlanGroupPayerDoesNotMatchInsuranceCardError_1 = require("../types/PayerPlanGroupPayerDoesNotMatchInsuranceCardError");
|
|
61
|
+
const SchemaInstanceValidationFailure_1 = require("../types/SchemaInstanceValidationFailure");
|
|
62
|
+
exports.Error = core.serialization
|
|
63
|
+
.union("errorName", {
|
|
64
|
+
EncounterExternalIdUniquenessError: core.serialization.object({
|
|
65
|
+
content: EncounterExternalIdUniquenessErrorType_1.EncounterExternalIdUniquenessErrorType,
|
|
66
|
+
}),
|
|
67
|
+
EncounterPatientControlNumberUniquenessError: core.serialization.object({
|
|
68
|
+
content: EncounterPatientControlNumberUniquenessErrorType_1.EncounterPatientControlNumberUniquenessErrorType,
|
|
69
|
+
}),
|
|
70
|
+
EntityNotFoundError: core.serialization.object({
|
|
71
|
+
content: EntityNotFoundErrorMessage_1.EntityNotFoundErrorMessage,
|
|
72
|
+
}),
|
|
73
|
+
UnauthorizedError: core.serialization.object({
|
|
74
|
+
content: UnauthorizedErrorMessage_1.UnauthorizedErrorMessage,
|
|
75
|
+
}),
|
|
76
|
+
EncounterGuarantorMissingContactInfoError: core.serialization.object({
|
|
77
|
+
content: EncounterGuarantorMissingContactInfoErrorType_1.EncounterGuarantorMissingContactInfoErrorType,
|
|
78
|
+
}),
|
|
79
|
+
HttpRequestValidationsError: core.serialization.object({
|
|
80
|
+
content: core.serialization.list(RequestValidationError_1.RequestValidationError),
|
|
81
|
+
}),
|
|
82
|
+
CashPayPayerError: core.serialization.object({
|
|
83
|
+
content: CashPayPayerErrorMessage_1.CashPayPayerErrorMessage,
|
|
84
|
+
}),
|
|
85
|
+
SchemaInstanceValidationHttpFailure: core.serialization.object({
|
|
86
|
+
content: SchemaInstanceValidationFailure_1.SchemaInstanceValidationFailure,
|
|
87
|
+
}),
|
|
88
|
+
InvalidTagNamesError: core.serialization.object({
|
|
89
|
+
content: InvalidTagNamesErrorType_1.InvalidTagNamesErrorType,
|
|
90
|
+
}),
|
|
91
|
+
HttpRequestValidationError: core.serialization.object({
|
|
92
|
+
content: RequestValidationError_1.RequestValidationError,
|
|
93
|
+
}),
|
|
94
|
+
PayerPlanGroupPayerDoesNotMatchInsuranceCardHttpError: core.serialization.object({
|
|
95
|
+
content: PayerPlanGroupPayerDoesNotMatchInsuranceCardError_1.PayerPlanGroupPayerDoesNotMatchInsuranceCardError,
|
|
96
|
+
}),
|
|
97
|
+
EncounterRenderingOrAttendingProviderRequired: core.serialization.object({
|
|
98
|
+
content: EncounterRenderingOrAttendingProviderRequiredError_1.EncounterRenderingOrAttendingProviderRequiredError,
|
|
99
|
+
}),
|
|
100
|
+
})
|
|
101
|
+
.transform({
|
|
102
|
+
transform: (value) => {
|
|
103
|
+
switch (value.errorName) {
|
|
104
|
+
case "EncounterExternalIdUniquenessError":
|
|
105
|
+
return CandidApi.encounters.v4.createUniversal.Error.encounterExternalIdUniquenessError(value.content);
|
|
106
|
+
case "EncounterPatientControlNumberUniquenessError":
|
|
107
|
+
return CandidApi.encounters.v4.createUniversal.Error.encounterPatientControlNumberUniquenessError(value.content);
|
|
108
|
+
case "EntityNotFoundError":
|
|
109
|
+
return CandidApi.encounters.v4.createUniversal.Error.entityNotFoundError(value.content);
|
|
110
|
+
case "UnauthorizedError":
|
|
111
|
+
return CandidApi.encounters.v4.createUniversal.Error.unauthorizedError(value.content);
|
|
112
|
+
case "EncounterGuarantorMissingContactInfoError":
|
|
113
|
+
return CandidApi.encounters.v4.createUniversal.Error.encounterGuarantorMissingContactInfoError(value.content);
|
|
114
|
+
case "HttpRequestValidationsError":
|
|
115
|
+
return CandidApi.encounters.v4.createUniversal.Error.httpRequestValidationsError(value.content);
|
|
116
|
+
case "CashPayPayerError":
|
|
117
|
+
return CandidApi.encounters.v4.createUniversal.Error.cashPayPayerError(value.content);
|
|
118
|
+
case "SchemaInstanceValidationHttpFailure":
|
|
119
|
+
return CandidApi.encounters.v4.createUniversal.Error.schemaInstanceValidationHttpFailure(value.content);
|
|
120
|
+
case "InvalidTagNamesError":
|
|
121
|
+
return CandidApi.encounters.v4.createUniversal.Error.invalidTagNamesError(value.content);
|
|
122
|
+
case "HttpRequestValidationError":
|
|
123
|
+
return CandidApi.encounters.v4.createUniversal.Error.httpRequestValidationError(value.content);
|
|
124
|
+
case "PayerPlanGroupPayerDoesNotMatchInsuranceCardHttpError":
|
|
125
|
+
return CandidApi.encounters.v4.createUniversal.Error.payerPlanGroupPayerDoesNotMatchInsuranceCardHttpError(value.content);
|
|
126
|
+
case "EncounterRenderingOrAttendingProviderRequired":
|
|
127
|
+
return CandidApi.encounters.v4.createUniversal.Error.encounterRenderingOrAttendingProviderRequired(value.content);
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
untransform: (_a) => {
|
|
131
|
+
var { _visit } = _a, value = __rest(_a, ["_visit"]);
|
|
132
|
+
return value;
|
|
133
|
+
},
|
|
134
|
+
});
|
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
export * as create from "./create";
|
|
2
2
|
export * as createFromPreEncounterPatient from "./createFromPreEncounterPatient";
|
|
3
|
+
export * as createFromPreEncounterPatientUniversal from "./createFromPreEncounterPatientUniversal";
|
|
4
|
+
export * as createUniversal from "./createUniversal";
|
|
3
5
|
export * as update from "./update";
|
|
6
|
+
export * as updateUniversal from "./updateUniversal";
|
|
@@ -33,7 +33,10 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.update = exports.createFromPreEncounterPatient = exports.create = void 0;
|
|
36
|
+
exports.updateUniversal = exports.update = exports.createUniversal = exports.createFromPreEncounterPatientUniversal = exports.createFromPreEncounterPatient = exports.create = void 0;
|
|
37
37
|
exports.create = __importStar(require("./create"));
|
|
38
38
|
exports.createFromPreEncounterPatient = __importStar(require("./createFromPreEncounterPatient"));
|
|
39
|
+
exports.createFromPreEncounterPatientUniversal = __importStar(require("./createFromPreEncounterPatientUniversal"));
|
|
40
|
+
exports.createUniversal = __importStar(require("./createUniversal"));
|
|
39
41
|
exports.update = __importStar(require("./update"));
|
|
42
|
+
exports.updateUniversal = __importStar(require("./updateUniversal"));
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import * as CandidApi from "../../../../../../api/index";
|
|
2
|
+
import * as core from "../../../../../../core";
|
|
3
|
+
import type * as serializers from "../../../../../index";
|
|
4
|
+
import { EntityNotFoundErrorMessage } from "../../../../commons/types/EntityNotFoundErrorMessage";
|
|
5
|
+
import { RequestValidationError } from "../../../../commons/types/RequestValidationError";
|
|
6
|
+
import { UnauthorizedErrorMessage } from "../../../../commons/types/UnauthorizedErrorMessage";
|
|
7
|
+
import { UnprocessableEntityErrorMessage } from "../../../../commons/types/UnprocessableEntityErrorMessage";
|
|
8
|
+
import { EncounterExternalIdUniquenessErrorType } from "../types/EncounterExternalIdUniquenessErrorType";
|
|
9
|
+
import { InvalidTagNamesErrorType } from "../types/InvalidTagNamesErrorType";
|
|
10
|
+
import { PayerPlanGroupPayerDoesNotMatchInsuranceCardError } from "../types/PayerPlanGroupPayerDoesNotMatchInsuranceCardError";
|
|
11
|
+
import { SchemaInstanceValidationFailure } from "../types/SchemaInstanceValidationFailure";
|
|
12
|
+
export declare const Error: core.serialization.Schema<serializers.encounters.v4.updateUniversal.Error.Raw, CandidApi.encounters.v4.updateUniversal.Error>;
|
|
13
|
+
export declare namespace Error {
|
|
14
|
+
type Raw = Error.EncounterExternalIdUniquenessError | Error.EntityNotFoundError | Error.UnauthorizedError | Error.HttpRequestValidationsError | Error.SchemaInstanceValidationHttpFailure | Error.UnprocessableEntityError | Error.InvalidTagNamesError | Error.PayerPlanGroupPayerDoesNotMatchInsuranceCardHttpError;
|
|
15
|
+
interface EncounterExternalIdUniquenessError {
|
|
16
|
+
errorName: "EncounterExternalIdUniquenessError";
|
|
17
|
+
content: EncounterExternalIdUniquenessErrorType.Raw;
|
|
18
|
+
}
|
|
19
|
+
interface EntityNotFoundError {
|
|
20
|
+
errorName: "EntityNotFoundError";
|
|
21
|
+
content: EntityNotFoundErrorMessage.Raw;
|
|
22
|
+
}
|
|
23
|
+
interface UnauthorizedError {
|
|
24
|
+
errorName: "UnauthorizedError";
|
|
25
|
+
content: UnauthorizedErrorMessage.Raw;
|
|
26
|
+
}
|
|
27
|
+
interface HttpRequestValidationsError {
|
|
28
|
+
errorName: "HttpRequestValidationsError";
|
|
29
|
+
content: RequestValidationError.Raw[];
|
|
30
|
+
}
|
|
31
|
+
interface SchemaInstanceValidationHttpFailure {
|
|
32
|
+
errorName: "SchemaInstanceValidationHttpFailure";
|
|
33
|
+
content: SchemaInstanceValidationFailure.Raw;
|
|
34
|
+
}
|
|
35
|
+
interface UnprocessableEntityError {
|
|
36
|
+
errorName: "UnprocessableEntityError";
|
|
37
|
+
content: UnprocessableEntityErrorMessage.Raw;
|
|
38
|
+
}
|
|
39
|
+
interface InvalidTagNamesError {
|
|
40
|
+
errorName: "InvalidTagNamesError";
|
|
41
|
+
content: InvalidTagNamesErrorType.Raw;
|
|
42
|
+
}
|
|
43
|
+
interface PayerPlanGroupPayerDoesNotMatchInsuranceCardHttpError {
|
|
44
|
+
errorName: "PayerPlanGroupPayerDoesNotMatchInsuranceCardHttpError";
|
|
45
|
+
content: PayerPlanGroupPayerDoesNotMatchInsuranceCardError.Raw;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
37
|
+
var t = {};
|
|
38
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
39
|
+
t[p] = s[p];
|
|
40
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
41
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
42
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
43
|
+
t[p[i]] = s[p[i]];
|
|
44
|
+
}
|
|
45
|
+
return t;
|
|
46
|
+
};
|
|
47
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
|
+
exports.Error = void 0;
|
|
49
|
+
const CandidApi = __importStar(require("../../../../../../api/index"));
|
|
50
|
+
const core = __importStar(require("../../../../../../core"));
|
|
51
|
+
const EntityNotFoundErrorMessage_1 = require("../../../../commons/types/EntityNotFoundErrorMessage");
|
|
52
|
+
const RequestValidationError_1 = require("../../../../commons/types/RequestValidationError");
|
|
53
|
+
const UnauthorizedErrorMessage_1 = require("../../../../commons/types/UnauthorizedErrorMessage");
|
|
54
|
+
const UnprocessableEntityErrorMessage_1 = require("../../../../commons/types/UnprocessableEntityErrorMessage");
|
|
55
|
+
const EncounterExternalIdUniquenessErrorType_1 = require("../types/EncounterExternalIdUniquenessErrorType");
|
|
56
|
+
const InvalidTagNamesErrorType_1 = require("../types/InvalidTagNamesErrorType");
|
|
57
|
+
const PayerPlanGroupPayerDoesNotMatchInsuranceCardError_1 = require("../types/PayerPlanGroupPayerDoesNotMatchInsuranceCardError");
|
|
58
|
+
const SchemaInstanceValidationFailure_1 = require("../types/SchemaInstanceValidationFailure");
|
|
59
|
+
exports.Error = core.serialization
|
|
60
|
+
.union("errorName", {
|
|
61
|
+
EncounterExternalIdUniquenessError: core.serialization.object({
|
|
62
|
+
content: EncounterExternalIdUniquenessErrorType_1.EncounterExternalIdUniquenessErrorType,
|
|
63
|
+
}),
|
|
64
|
+
EntityNotFoundError: core.serialization.object({
|
|
65
|
+
content: EntityNotFoundErrorMessage_1.EntityNotFoundErrorMessage,
|
|
66
|
+
}),
|
|
67
|
+
UnauthorizedError: core.serialization.object({
|
|
68
|
+
content: UnauthorizedErrorMessage_1.UnauthorizedErrorMessage,
|
|
69
|
+
}),
|
|
70
|
+
HttpRequestValidationsError: core.serialization.object({
|
|
71
|
+
content: core.serialization.list(RequestValidationError_1.RequestValidationError),
|
|
72
|
+
}),
|
|
73
|
+
SchemaInstanceValidationHttpFailure: core.serialization.object({
|
|
74
|
+
content: SchemaInstanceValidationFailure_1.SchemaInstanceValidationFailure,
|
|
75
|
+
}),
|
|
76
|
+
UnprocessableEntityError: core.serialization.object({
|
|
77
|
+
content: UnprocessableEntityErrorMessage_1.UnprocessableEntityErrorMessage,
|
|
78
|
+
}),
|
|
79
|
+
InvalidTagNamesError: core.serialization.object({
|
|
80
|
+
content: InvalidTagNamesErrorType_1.InvalidTagNamesErrorType,
|
|
81
|
+
}),
|
|
82
|
+
PayerPlanGroupPayerDoesNotMatchInsuranceCardHttpError: core.serialization.object({
|
|
83
|
+
content: PayerPlanGroupPayerDoesNotMatchInsuranceCardError_1.PayerPlanGroupPayerDoesNotMatchInsuranceCardError,
|
|
84
|
+
}),
|
|
85
|
+
})
|
|
86
|
+
.transform({
|
|
87
|
+
transform: (value) => {
|
|
88
|
+
switch (value.errorName) {
|
|
89
|
+
case "EncounterExternalIdUniquenessError":
|
|
90
|
+
return CandidApi.encounters.v4.updateUniversal.Error.encounterExternalIdUniquenessError(value.content);
|
|
91
|
+
case "EntityNotFoundError":
|
|
92
|
+
return CandidApi.encounters.v4.updateUniversal.Error.entityNotFoundError(value.content);
|
|
93
|
+
case "UnauthorizedError":
|
|
94
|
+
return CandidApi.encounters.v4.updateUniversal.Error.unauthorizedError(value.content);
|
|
95
|
+
case "HttpRequestValidationsError":
|
|
96
|
+
return CandidApi.encounters.v4.updateUniversal.Error.httpRequestValidationsError(value.content);
|
|
97
|
+
case "SchemaInstanceValidationHttpFailure":
|
|
98
|
+
return CandidApi.encounters.v4.updateUniversal.Error.schemaInstanceValidationHttpFailure(value.content);
|
|
99
|
+
case "UnprocessableEntityError":
|
|
100
|
+
return CandidApi.encounters.v4.updateUniversal.Error.unprocessableEntityError(value.content);
|
|
101
|
+
case "InvalidTagNamesError":
|
|
102
|
+
return CandidApi.encounters.v4.updateUniversal.Error.invalidTagNamesError(value.content);
|
|
103
|
+
case "PayerPlanGroupPayerDoesNotMatchInsuranceCardHttpError":
|
|
104
|
+
return CandidApi.encounters.v4.updateUniversal.Error.payerPlanGroupPayerDoesNotMatchInsuranceCardHttpError(value.content);
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
untransform: (_a) => {
|
|
108
|
+
var { _visit } = _a, value = __rest(_a, ["_visit"]);
|
|
109
|
+
return value;
|
|
110
|
+
},
|
|
111
|
+
});
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type * as CandidApi from "../../../../api/index";
|
|
2
|
+
import * as core from "../../../../core";
|
|
3
|
+
import type * as serializers from "../../../index";
|
|
4
|
+
import { FacilityTypeCode } from "../../commons/types/FacilityTypeCode";
|
|
5
|
+
import { State } from "../../commons/types/State";
|
|
6
|
+
import { BillingProvider } from "../../encounterProviders/resources/v2/types/BillingProvider";
|
|
7
|
+
import { RenderingProvider } from "../../encounterProviders/resources/v2/types/RenderingProvider";
|
|
8
|
+
import { EncounterSubmissionExpectation } from "../../encounters/resources/v4/types/EncounterSubmissionExpectation";
|
|
9
|
+
import { HealthCareCodeInformationCreate } from "../../healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationCreate";
|
|
10
|
+
import { UniversalServiceLineCreate } from "../../serviceLines/resources/v2/types/UniversalServiceLineCreate";
|
|
11
|
+
import { PatientDischargeStatusCode } from "../../x12/resources/v1/types/PatientDischargeStatusCode";
|
|
12
|
+
import { PointOfOriginForAdmissionOrVisitCode } from "../../x12/resources/v1/types/PointOfOriginForAdmissionOrVisitCode";
|
|
13
|
+
import { TypeOfAdmissionOrVisitCode } from "../../x12/resources/v1/types/TypeOfAdmissionOrVisitCode";
|
|
14
|
+
import { TypeOfBillCompositeUpdate } from "../../x12/resources/v1/types/TypeOfBillCompositeUpdate";
|
|
15
|
+
import { UniversalEncounterCreateBase } from "./UniversalEncounterCreateBase";
|
|
16
|
+
export declare const UniversalEncounterCreate: core.serialization.ObjectSchema<serializers.encountersUniversal.UniversalEncounterCreate.Raw, CandidApi.encountersUniversal.UniversalEncounterCreate>;
|
|
17
|
+
export declare namespace UniversalEncounterCreate {
|
|
18
|
+
interface Raw extends UniversalEncounterCreateBase.Raw {
|
|
19
|
+
billing_provider: BillingProvider.Raw;
|
|
20
|
+
place_of_service_code?: FacilityTypeCode.Raw | null;
|
|
21
|
+
rendering_provider?: RenderingProvider.Raw | null;
|
|
22
|
+
service_lines?: UniversalServiceLineCreate.Raw[] | null;
|
|
23
|
+
health_care_code_information?: HealthCareCodeInformationCreate.Raw | null;
|
|
24
|
+
submission_expectation: EncounterSubmissionExpectation.Raw;
|
|
25
|
+
attending_provider?: RenderingProvider.Raw | null;
|
|
26
|
+
admission_hour?: number | null;
|
|
27
|
+
admission_type_code?: TypeOfAdmissionOrVisitCode.Raw | null;
|
|
28
|
+
admission_source_code?: PointOfOriginForAdmissionOrVisitCode.Raw | null;
|
|
29
|
+
discharge_hour?: number | null;
|
|
30
|
+
discharge_status?: PatientDischargeStatusCode.Raw | null;
|
|
31
|
+
operating_provider?: RenderingProvider.Raw | null;
|
|
32
|
+
other_operating_provider?: RenderingProvider.Raw | null;
|
|
33
|
+
type_of_bill?: TypeOfBillCompositeUpdate.Raw | null;
|
|
34
|
+
accident_state_or_province_code?: State.Raw | null;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.UniversalEncounterCreate = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../core"));
|
|
39
|
+
const FacilityTypeCode_1 = require("../../commons/types/FacilityTypeCode");
|
|
40
|
+
const State_1 = require("../../commons/types/State");
|
|
41
|
+
const BillingProvider_1 = require("../../encounterProviders/resources/v2/types/BillingProvider");
|
|
42
|
+
const RenderingProvider_1 = require("../../encounterProviders/resources/v2/types/RenderingProvider");
|
|
43
|
+
const EncounterSubmissionExpectation_1 = require("../../encounters/resources/v4/types/EncounterSubmissionExpectation");
|
|
44
|
+
const HealthCareCodeInformationCreate_1 = require("../../healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationCreate");
|
|
45
|
+
const UniversalServiceLineCreate_1 = require("../../serviceLines/resources/v2/types/UniversalServiceLineCreate");
|
|
46
|
+
const PatientDischargeStatusCode_1 = require("../../x12/resources/v1/types/PatientDischargeStatusCode");
|
|
47
|
+
const PointOfOriginForAdmissionOrVisitCode_1 = require("../../x12/resources/v1/types/PointOfOriginForAdmissionOrVisitCode");
|
|
48
|
+
const TypeOfAdmissionOrVisitCode_1 = require("../../x12/resources/v1/types/TypeOfAdmissionOrVisitCode");
|
|
49
|
+
const TypeOfBillCompositeUpdate_1 = require("../../x12/resources/v1/types/TypeOfBillCompositeUpdate");
|
|
50
|
+
const UniversalEncounterCreateBase_1 = require("./UniversalEncounterCreateBase");
|
|
51
|
+
exports.UniversalEncounterCreate = core.serialization
|
|
52
|
+
.object({
|
|
53
|
+
billingProvider: core.serialization.property("billing_provider", BillingProvider_1.BillingProvider),
|
|
54
|
+
placeOfServiceCode: core.serialization.property("place_of_service_code", FacilityTypeCode_1.FacilityTypeCode.optional()),
|
|
55
|
+
renderingProvider: core.serialization.property("rendering_provider", RenderingProvider_1.RenderingProvider.optional()),
|
|
56
|
+
serviceLines: core.serialization.property("service_lines", core.serialization.list(UniversalServiceLineCreate_1.UniversalServiceLineCreate).optional()),
|
|
57
|
+
healthCareCodeInformation: core.serialization.property("health_care_code_information", HealthCareCodeInformationCreate_1.HealthCareCodeInformationCreate.optional()),
|
|
58
|
+
submissionExpectation: core.serialization.property("submission_expectation", EncounterSubmissionExpectation_1.EncounterSubmissionExpectation),
|
|
59
|
+
attendingProvider: core.serialization.property("attending_provider", RenderingProvider_1.RenderingProvider.optional()),
|
|
60
|
+
admissionHour: core.serialization.property("admission_hour", core.serialization.number().optional()),
|
|
61
|
+
admissionTypeCode: core.serialization.property("admission_type_code", TypeOfAdmissionOrVisitCode_1.TypeOfAdmissionOrVisitCode.optional()),
|
|
62
|
+
admissionSourceCode: core.serialization.property("admission_source_code", PointOfOriginForAdmissionOrVisitCode_1.PointOfOriginForAdmissionOrVisitCode.optional()),
|
|
63
|
+
dischargeHour: core.serialization.property("discharge_hour", core.serialization.number().optional()),
|
|
64
|
+
dischargeStatus: core.serialization.property("discharge_status", PatientDischargeStatusCode_1.PatientDischargeStatusCode.optional()),
|
|
65
|
+
operatingProvider: core.serialization.property("operating_provider", RenderingProvider_1.RenderingProvider.optional()),
|
|
66
|
+
otherOperatingProvider: core.serialization.property("other_operating_provider", RenderingProvider_1.RenderingProvider.optional()),
|
|
67
|
+
typeOfBill: core.serialization.property("type_of_bill", TypeOfBillCompositeUpdate_1.TypeOfBillCompositeUpdate.optional()),
|
|
68
|
+
accidentStateOrProvinceCode: core.serialization.property("accident_state_or_province_code", State_1.State.optional()),
|
|
69
|
+
})
|
|
70
|
+
.extend(UniversalEncounterCreateBase_1.UniversalEncounterCreateBase);
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type * as CandidApi from "../../../../api/index";
|
|
2
|
+
import * as core from "../../../../core";
|
|
3
|
+
import type * as serializers from "../../../index";
|
|
4
|
+
import { FacilityTypeCode } from "../../commons/types/FacilityTypeCode";
|
|
5
|
+
import { State } from "../../commons/types/State";
|
|
6
|
+
import { RenderingProvider } from "../../encounterProviders/resources/v2/types/RenderingProvider";
|
|
7
|
+
import { EncounterSubmissionExpectation } from "../../encounters/resources/v4/types/EncounterSubmissionExpectation";
|
|
8
|
+
import { HealthCareCodeInformationCreate } from "../../healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationCreate";
|
|
9
|
+
import { UniversalServiceLineCreate } from "../../serviceLines/resources/v2/types/UniversalServiceLineCreate";
|
|
10
|
+
import { PatientDischargeStatusCode } from "../../x12/resources/v1/types/PatientDischargeStatusCode";
|
|
11
|
+
import { PointOfOriginForAdmissionOrVisitCode } from "../../x12/resources/v1/types/PointOfOriginForAdmissionOrVisitCode";
|
|
12
|
+
import { TypeOfAdmissionOrVisitCode } from "../../x12/resources/v1/types/TypeOfAdmissionOrVisitCode";
|
|
13
|
+
import { TypeOfBillCompositeUpdate } from "../../x12/resources/v1/types/TypeOfBillCompositeUpdate";
|
|
14
|
+
import { UniversalEncounterCreateFromPreEncounterBase } from "./UniversalEncounterCreateFromPreEncounterBase";
|
|
15
|
+
export declare const UniversalEncounterCreateFromPreEncounter: core.serialization.ObjectSchema<serializers.encountersUniversal.UniversalEncounterCreateFromPreEncounter.Raw, CandidApi.encountersUniversal.UniversalEncounterCreateFromPreEncounter>;
|
|
16
|
+
export declare namespace UniversalEncounterCreateFromPreEncounter {
|
|
17
|
+
interface Raw extends UniversalEncounterCreateFromPreEncounterBase.Raw {
|
|
18
|
+
submission_expectation: EncounterSubmissionExpectation.Raw;
|
|
19
|
+
rendering_provider?: RenderingProvider.Raw | null;
|
|
20
|
+
health_care_code_information?: HealthCareCodeInformationCreate.Raw | null;
|
|
21
|
+
place_of_service_code?: FacilityTypeCode.Raw | null;
|
|
22
|
+
service_lines?: UniversalServiceLineCreate.Raw[] | null;
|
|
23
|
+
attending_provider?: RenderingProvider.Raw | null;
|
|
24
|
+
admission_hour?: number | null;
|
|
25
|
+
admission_type_code?: TypeOfAdmissionOrVisitCode.Raw | null;
|
|
26
|
+
admission_source_code?: PointOfOriginForAdmissionOrVisitCode.Raw | null;
|
|
27
|
+
discharge_hour?: number | null;
|
|
28
|
+
discharge_status?: PatientDischargeStatusCode.Raw | null;
|
|
29
|
+
operating_provider?: RenderingProvider.Raw | null;
|
|
30
|
+
other_operating_provider?: RenderingProvider.Raw | null;
|
|
31
|
+
type_of_bill?: TypeOfBillCompositeUpdate.Raw | null;
|
|
32
|
+
accident_state_or_province_code?: State.Raw | null;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.UniversalEncounterCreateFromPreEncounter = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../core"));
|
|
39
|
+
const FacilityTypeCode_1 = require("../../commons/types/FacilityTypeCode");
|
|
40
|
+
const State_1 = require("../../commons/types/State");
|
|
41
|
+
const RenderingProvider_1 = require("../../encounterProviders/resources/v2/types/RenderingProvider");
|
|
42
|
+
const EncounterSubmissionExpectation_1 = require("../../encounters/resources/v4/types/EncounterSubmissionExpectation");
|
|
43
|
+
const HealthCareCodeInformationCreate_1 = require("../../healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationCreate");
|
|
44
|
+
const UniversalServiceLineCreate_1 = require("../../serviceLines/resources/v2/types/UniversalServiceLineCreate");
|
|
45
|
+
const PatientDischargeStatusCode_1 = require("../../x12/resources/v1/types/PatientDischargeStatusCode");
|
|
46
|
+
const PointOfOriginForAdmissionOrVisitCode_1 = require("../../x12/resources/v1/types/PointOfOriginForAdmissionOrVisitCode");
|
|
47
|
+
const TypeOfAdmissionOrVisitCode_1 = require("../../x12/resources/v1/types/TypeOfAdmissionOrVisitCode");
|
|
48
|
+
const TypeOfBillCompositeUpdate_1 = require("../../x12/resources/v1/types/TypeOfBillCompositeUpdate");
|
|
49
|
+
const UniversalEncounterCreateFromPreEncounterBase_1 = require("./UniversalEncounterCreateFromPreEncounterBase");
|
|
50
|
+
exports.UniversalEncounterCreateFromPreEncounter = core.serialization
|
|
51
|
+
.object({
|
|
52
|
+
submissionExpectation: core.serialization.property("submission_expectation", EncounterSubmissionExpectation_1.EncounterSubmissionExpectation),
|
|
53
|
+
renderingProvider: core.serialization.property("rendering_provider", RenderingProvider_1.RenderingProvider.optional()),
|
|
54
|
+
healthCareCodeInformation: core.serialization.property("health_care_code_information", HealthCareCodeInformationCreate_1.HealthCareCodeInformationCreate.optional()),
|
|
55
|
+
placeOfServiceCode: core.serialization.property("place_of_service_code", FacilityTypeCode_1.FacilityTypeCode.optional()),
|
|
56
|
+
serviceLines: core.serialization.property("service_lines", core.serialization.list(UniversalServiceLineCreate_1.UniversalServiceLineCreate).optional()),
|
|
57
|
+
attendingProvider: core.serialization.property("attending_provider", RenderingProvider_1.RenderingProvider.optional()),
|
|
58
|
+
admissionHour: core.serialization.property("admission_hour", core.serialization.number().optional()),
|
|
59
|
+
admissionTypeCode: core.serialization.property("admission_type_code", TypeOfAdmissionOrVisitCode_1.TypeOfAdmissionOrVisitCode.optional()),
|
|
60
|
+
admissionSourceCode: core.serialization.property("admission_source_code", PointOfOriginForAdmissionOrVisitCode_1.PointOfOriginForAdmissionOrVisitCode.optional()),
|
|
61
|
+
dischargeHour: core.serialization.property("discharge_hour", core.serialization.number().optional()),
|
|
62
|
+
dischargeStatus: core.serialization.property("discharge_status", PatientDischargeStatusCode_1.PatientDischargeStatusCode.optional()),
|
|
63
|
+
operatingProvider: core.serialization.property("operating_provider", RenderingProvider_1.RenderingProvider.optional()),
|
|
64
|
+
otherOperatingProvider: core.serialization.property("other_operating_provider", RenderingProvider_1.RenderingProvider.optional()),
|
|
65
|
+
typeOfBill: core.serialization.property("type_of_bill", TypeOfBillCompositeUpdate_1.TypeOfBillCompositeUpdate.optional()),
|
|
66
|
+
accidentStateOrProvinceCode: core.serialization.property("accident_state_or_province_code", State_1.State.optional()),
|
|
67
|
+
})
|
|
68
|
+
.extend(UniversalEncounterCreateFromPreEncounterBase_1.UniversalEncounterCreateFromPreEncounterBase);
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type * as CandidApi from "../../../../api/index";
|
|
2
|
+
import * as core from "../../../../core";
|
|
3
|
+
import type * as serializers from "../../../index";
|
|
4
|
+
import { State } from "../../commons/types/State";
|
|
5
|
+
import { RenderingProviderUpdate } from "../../encounterProviders/resources/v2/types/RenderingProviderUpdate";
|
|
6
|
+
import { EncounterSubmissionExpectation } from "../../encounters/resources/v4/types/EncounterSubmissionExpectation";
|
|
7
|
+
import { HealthCareCodeInformationUpdate } from "../../healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationUpdate";
|
|
8
|
+
import { PatientDischargeStatusCode } from "../../x12/resources/v1/types/PatientDischargeStatusCode";
|
|
9
|
+
import { PointOfOriginForAdmissionOrVisitCode } from "../../x12/resources/v1/types/PointOfOriginForAdmissionOrVisitCode";
|
|
10
|
+
import { TypeOfAdmissionOrVisitCode } from "../../x12/resources/v1/types/TypeOfAdmissionOrVisitCode";
|
|
11
|
+
import { TypeOfBillCompositeUpdate } from "../../x12/resources/v1/types/TypeOfBillCompositeUpdate";
|
|
12
|
+
import { UniversalEncounterUpdateBase } from "./UniversalEncounterUpdateBase";
|
|
13
|
+
export declare const UniversalEncounterUpdate: core.serialization.ObjectSchema<serializers.encountersUniversal.UniversalEncounterUpdate.Raw, CandidApi.encountersUniversal.UniversalEncounterUpdate>;
|
|
14
|
+
export declare namespace UniversalEncounterUpdate {
|
|
15
|
+
interface Raw extends UniversalEncounterUpdateBase.Raw {
|
|
16
|
+
health_care_code_information?: HealthCareCodeInformationUpdate.Raw | null;
|
|
17
|
+
attending_provider?: RenderingProviderUpdate.Raw | null;
|
|
18
|
+
admission_hour?: number | null;
|
|
19
|
+
admission_type_code?: TypeOfAdmissionOrVisitCode.Raw | null;
|
|
20
|
+
admission_source_code?: PointOfOriginForAdmissionOrVisitCode.Raw | null;
|
|
21
|
+
discharge_hour?: number | null;
|
|
22
|
+
discharge_status?: PatientDischargeStatusCode.Raw | null;
|
|
23
|
+
operating_provider?: RenderingProviderUpdate.Raw | null;
|
|
24
|
+
other_operating_provider?: RenderingProviderUpdate.Raw | null;
|
|
25
|
+
type_of_bill?: TypeOfBillCompositeUpdate.Raw | null;
|
|
26
|
+
accident_state_or_province_code?: State.Raw | null;
|
|
27
|
+
submission_expectation?: EncounterSubmissionExpectation.Raw | null;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.UniversalEncounterUpdate = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../core"));
|
|
39
|
+
const State_1 = require("../../commons/types/State");
|
|
40
|
+
const RenderingProviderUpdate_1 = require("../../encounterProviders/resources/v2/types/RenderingProviderUpdate");
|
|
41
|
+
const EncounterSubmissionExpectation_1 = require("../../encounters/resources/v4/types/EncounterSubmissionExpectation");
|
|
42
|
+
const HealthCareCodeInformationUpdate_1 = require("../../healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationUpdate");
|
|
43
|
+
const PatientDischargeStatusCode_1 = require("../../x12/resources/v1/types/PatientDischargeStatusCode");
|
|
44
|
+
const PointOfOriginForAdmissionOrVisitCode_1 = require("../../x12/resources/v1/types/PointOfOriginForAdmissionOrVisitCode");
|
|
45
|
+
const TypeOfAdmissionOrVisitCode_1 = require("../../x12/resources/v1/types/TypeOfAdmissionOrVisitCode");
|
|
46
|
+
const TypeOfBillCompositeUpdate_1 = require("../../x12/resources/v1/types/TypeOfBillCompositeUpdate");
|
|
47
|
+
const UniversalEncounterUpdateBase_1 = require("./UniversalEncounterUpdateBase");
|
|
48
|
+
exports.UniversalEncounterUpdate = core.serialization
|
|
49
|
+
.object({
|
|
50
|
+
healthCareCodeInformation: core.serialization.property("health_care_code_information", HealthCareCodeInformationUpdate_1.HealthCareCodeInformationUpdate.optional()),
|
|
51
|
+
attendingProvider: core.serialization.property("attending_provider", RenderingProviderUpdate_1.RenderingProviderUpdate.optional()),
|
|
52
|
+
admissionHour: core.serialization.property("admission_hour", core.serialization.number().optional()),
|
|
53
|
+
admissionTypeCode: core.serialization.property("admission_type_code", TypeOfAdmissionOrVisitCode_1.TypeOfAdmissionOrVisitCode.optional()),
|
|
54
|
+
admissionSourceCode: core.serialization.property("admission_source_code", PointOfOriginForAdmissionOrVisitCode_1.PointOfOriginForAdmissionOrVisitCode.optional()),
|
|
55
|
+
dischargeHour: core.serialization.property("discharge_hour", core.serialization.number().optional()),
|
|
56
|
+
dischargeStatus: core.serialization.property("discharge_status", PatientDischargeStatusCode_1.PatientDischargeStatusCode.optional()),
|
|
57
|
+
operatingProvider: core.serialization.property("operating_provider", RenderingProviderUpdate_1.RenderingProviderUpdate.optional()),
|
|
58
|
+
otherOperatingProvider: core.serialization.property("other_operating_provider", RenderingProviderUpdate_1.RenderingProviderUpdate.optional()),
|
|
59
|
+
typeOfBill: core.serialization.property("type_of_bill", TypeOfBillCompositeUpdate_1.TypeOfBillCompositeUpdate.optional()),
|
|
60
|
+
accidentStateOrProvinceCode: core.serialization.property("accident_state_or_province_code", State_1.State.optional()),
|
|
61
|
+
submissionExpectation: core.serialization.property("submission_expectation", EncounterSubmissionExpectation_1.EncounterSubmissionExpectation.optional()),
|
|
62
|
+
})
|
|
63
|
+
.extend(UniversalEncounterUpdateBase_1.UniversalEncounterUpdateBase);
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
export * from "./UniversalEncounterCreate";
|
|
1
2
|
export * from "./UniversalEncounterCreateBase";
|
|
3
|
+
export * from "./UniversalEncounterCreateFromPreEncounter";
|
|
2
4
|
export * from "./UniversalEncounterCreateFromPreEncounterBase";
|
|
5
|
+
export * from "./UniversalEncounterUpdate";
|
|
3
6
|
export * from "./UniversalEncounterUpdateBase";
|