candidhealth 0.39.4 → 0.39.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (100) hide show
  1. package/api/resources/auth/resources/v2/client/Client.js +1 -1
  2. package/api/resources/billingNotes/resources/v2/client/Client.js +3 -3
  3. package/api/resources/chargeCapture/resources/v1/client/Client.js +5 -5
  4. package/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +3 -3
  5. package/api/resources/contracts/resources/v2/client/Client.js +5 -5
  6. package/api/resources/credentialing/resources/v2/client/Client.js +5 -5
  7. package/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  8. package/api/resources/diagnoses/client/Client.js +3 -3
  9. package/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  10. package/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
  11. package/api/resources/encounters/resources/v4/client/Client.d.ts +0 -223
  12. package/api/resources/encounters/resources/v4/client/Client.js +5 -288
  13. package/api/resources/encounters/resources/v4/client/index.d.ts +0 -1
  14. package/api/resources/encounters/resources/v4/client/index.js +1 -2
  15. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  16. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  17. package/api/resources/exports/resources/v3/client/Client.js +1 -1
  18. package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  19. package/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  20. package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  21. package/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  22. package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  23. package/api/resources/insurancePayments/resources/v1/client/Client.js +5 -5
  24. package/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  25. package/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
  26. package/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  27. package/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  28. package/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
  29. package/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  30. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  31. package/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  32. package/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  33. package/api/resources/payers/resources/v3/client/Client.js +2 -2
  34. package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +6 -6
  35. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +8 -8
  36. package/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  37. package/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
  38. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +9 -9
  39. package/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
  40. package/api/resources/serviceFacility/client/Client.js +1 -1
  41. package/api/resources/serviceLines/resources/v2/client/Client.js +3 -3
  42. package/api/resources/tasks/resources/v3/client/Client.js +5 -5
  43. package/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
  44. package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
  45. package/dist/api/resources/billingNotes/resources/v2/client/Client.js +3 -3
  46. package/dist/api/resources/chargeCapture/resources/v1/client/Client.js +5 -5
  47. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +3 -3
  48. package/dist/api/resources/contracts/resources/v2/client/Client.js +5 -5
  49. package/dist/api/resources/credentialing/resources/v2/client/Client.js +5 -5
  50. package/dist/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  51. package/dist/api/resources/diagnoses/client/Client.js +3 -3
  52. package/dist/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  53. package/dist/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
  54. package/dist/api/resources/encounters/resources/v4/client/Client.d.ts +0 -223
  55. package/dist/api/resources/encounters/resources/v4/client/Client.js +5 -288
  56. package/dist/api/resources/encounters/resources/v4/client/index.d.ts +0 -1
  57. package/dist/api/resources/encounters/resources/v4/client/index.js +1 -2
  58. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  59. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  60. package/dist/api/resources/exports/resources/v3/client/Client.js +1 -1
  61. package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  62. package/dist/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  63. package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  64. package/dist/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  65. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  66. package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +5 -5
  67. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  68. package/dist/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
  69. package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  70. package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  71. package/dist/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
  72. package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  73. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  74. package/dist/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  75. package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  76. package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
  77. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +6 -6
  78. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +8 -8
  79. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  80. package/dist/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
  81. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +9 -9
  82. package/dist/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
  83. package/dist/api/resources/serviceFacility/client/Client.js +1 -1
  84. package/dist/api/resources/serviceLines/resources/v2/client/Client.js +3 -3
  85. package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -5
  86. package/dist/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
  87. package/dist/serialization/resources/encounters/resources/v4/client/index.d.ts +0 -1
  88. package/dist/serialization/resources/encounters/resources/v4/client/index.js +1 -2
  89. package/package.json +1 -1
  90. package/reference.md +0 -304
  91. package/serialization/resources/encounters/resources/v4/client/index.d.ts +0 -1
  92. package/serialization/resources/encounters/resources/v4/client/index.js +1 -2
  93. package/api/resources/encounters/resources/v4/client/createFromPreEncounterPatientInternal.d.ts +0 -58
  94. package/api/resources/encounters/resources/v4/client/createFromPreEncounterPatientInternal.js +0 -113
  95. package/dist/api/resources/encounters/resources/v4/client/createFromPreEncounterPatientInternal.d.ts +0 -58
  96. package/dist/api/resources/encounters/resources/v4/client/createFromPreEncounterPatientInternal.js +0 -113
  97. package/dist/serialization/resources/encounters/resources/v4/client/createFromPreEncounterPatientInternal.d.ts +0 -39
  98. package/dist/serialization/resources/encounters/resources/v4/client/createFromPreEncounterPatientInternal.js +0 -90
  99. package/serialization/resources/encounters/resources/v4/client/createFromPreEncounterPatientInternal.d.ts +0 -39
  100. package/serialization/resources/encounters/resources/v4/client/createFromPreEncounterPatientInternal.js +0 -90
@@ -603,229 +603,6 @@ export declare class V4 {
603
603
  * })
604
604
  */
605
605
  createFromPreEncounterPatient(request: CandidApi.encounters.v4.EncounterCreateFromPreEncounter, requestOptions?: V4.RequestOptions): Promise<core.APIResponse<CandidApi.encounters.v4.Encounter, CandidApi.encounters.v4.createFromPreEncounterPatient.Error>>;
606
- /**
607
- * Create an encounter from a pre-encounter patient and appointment. This endpoint is intended to be used by consumers who are managing
608
- * patients and appointments in the pre-encounter service and is currently under development. Consumers who are not taking advantage
609
- * of the pre-encounter service should use the standard create endpoint.
610
- *
611
- * The endpoint will create an encounter from the provided fields, pulling information from the provided patient and appointment objects
612
- * where applicable. In particular, the following fields are populated from the patient and appointment objects:
613
- *
614
- * - Patient
615
- * - Referring Provider
616
- * - Subscriber Primary
617
- * - Subscriber Secondary
618
- * - Referral Number
619
- * - Responsible Party
620
- * - Guarantor
621
- *
622
- * Utilizing this endpoint opts you into automatic updating of the encounter when the patient or appointment is updated, assuming the
623
- * encounter has not already been submitted or adjudicated.
624
- *
625
- * @param {CandidApi.encounters.v4.EncounterCreateFromPreEncounter} request
626
- * @param {V4.RequestOptions} requestOptions - Request-specific configuration.
627
- *
628
- * @example
629
- * await client.encounters.v4.createFromPreEncounterPatientInternal({
630
- * preEncounterPatientId: CandidApi.PreEncounterPatientId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
631
- * preEncounterAppointmentIds: [CandidApi.PreEncounterAppointmentId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")],
632
- * billingProvider: {
633
- * address: {
634
- * address1: "123 Main St",
635
- * address2: "Apt 1",
636
- * city: "New York",
637
- * state: CandidApi.State.Ny,
638
- * zipCode: "10001",
639
- * zipPlusFourCode: "1234"
640
- * },
641
- * taxId: "string",
642
- * npi: "string",
643
- * taxonomyCode: "string",
644
- * providerCommercialLicenseType: CandidApi.BillingProviderCommercialLicenseType.LicensedClinicalSocialWorker,
645
- * firstName: "string",
646
- * lastName: "string",
647
- * organizationName: "string"
648
- * },
649
- * renderingProvider: {
650
- * npi: "string",
651
- * taxonomyCode: "string",
652
- * address: {
653
- * address1: "123 Main St",
654
- * address2: "Apt 1",
655
- * city: "New York",
656
- * state: CandidApi.State.Ny,
657
- * zipCode: "10001",
658
- * zipPlusFourCode: "1234"
659
- * },
660
- * firstName: "string",
661
- * lastName: "string",
662
- * organizationName: "string"
663
- * },
664
- * initialReferringProvider: {
665
- * npi: "string",
666
- * taxonomyCode: "string",
667
- * address: {
668
- * address1: "123 Main St",
669
- * address2: "Apt 1",
670
- * city: "New York",
671
- * state: CandidApi.State.Ny,
672
- * zipCode: "10001",
673
- * zipPlusFourCode: "1234"
674
- * },
675
- * qualifier: CandidApi.QualifierCode.Dq,
676
- * firstName: "string",
677
- * lastName: "string",
678
- * organizationName: "string"
679
- * },
680
- * supervisingProvider: {
681
- * npi: "string",
682
- * taxonomyCode: "string",
683
- * address: {
684
- * address1: "123 Main St",
685
- * address2: "Apt 1",
686
- * city: "New York",
687
- * state: CandidApi.State.Ny,
688
- * zipCode: "10001",
689
- * zipPlusFourCode: "1234"
690
- * },
691
- * firstName: "string",
692
- * lastName: "string",
693
- * organizationName: "string"
694
- * },
695
- * serviceFacility: {
696
- * organizationName: "string",
697
- * npi: "string",
698
- * address: {
699
- * address1: "123 Main St",
700
- * address2: "Apt 1",
701
- * city: "New York",
702
- * state: CandidApi.State.Ny,
703
- * zipCode: "10001",
704
- * zipPlusFourCode: "1234"
705
- * },
706
- * secondaryIdentification: "string"
707
- * },
708
- * diagnoses: [{
709
- * name: "string",
710
- * codeType: CandidApi.DiagnosisTypeCode.Abf,
711
- * code: "string"
712
- * }],
713
- * clinicalNotes: [{
714
- * category: CandidApi.encounters.v4.NoteCategory.Clinical,
715
- * notes: []
716
- * }],
717
- * billingNotes: [{
718
- * text: "string"
719
- * }],
720
- * placeOfServiceCode: CandidApi.FacilityTypeCode.Pharmacy,
721
- * patientHistories: [{
722
- * category: CandidApi.encounters.v4.PatientHistoryCategoryEnum.PresentIllness,
723
- * questions: [{
724
- * id: CandidApi.encounters.v4.IntakeQuestionId("6E7FBCE4-A8EA-46D0-A8D8-FF83CA3BB176"),
725
- * text: "Do you have any allergies?",
726
- * responses: [{
727
- * response: "No allergies",
728
- * followUps: [{
729
- * id: CandidApi.encounters.v4.IntakeFollowUpId("4F3D57F9-AC94-49D6-87E4-E804B709917A"),
730
- * text: "Do you have any allergies?",
731
- * response: "No allergies"
732
- * }]
733
- * }]
734
- * }]
735
- * }],
736
- * serviceLines: [{
737
- * procedureCode: "string",
738
- * quantity: CandidApi.Decimal("string"),
739
- * units: CandidApi.ServiceLineUnits.Mj,
740
- * diagnosisPointers: []
741
- * }],
742
- * externalClaimSubmission: {
743
- * claimCreatedAt: new Date("2023-01-01T12:00:00.000Z"),
744
- * patientControlNumber: "PATIENT_CONTROL_NUMBER",
745
- * submissionRecords: [{
746
- * submittedAt: new Date("2023-01-01T13:00:00.000Z"),
747
- * claimFrequencyCode: CandidApi.claimSubmission.v1.ClaimFrequencyTypeCode.Original,
748
- * payerResponsibility: CandidApi.ClaimSubmissionPayerResponsibilityType.Primary,
749
- * intendedSubmissionMedium: CandidApi.IntendedSubmissionMedium.Electronic
750
- * }, {
751
- * submittedAt: new Date("2023-01-04T12:00:00.000Z"),
752
- * claimFrequencyCode: CandidApi.claimSubmission.v1.ClaimFrequencyTypeCode.Replacement,
753
- * payerResponsibility: CandidApi.ClaimSubmissionPayerResponsibilityType.Primary,
754
- * intendedSubmissionMedium: CandidApi.IntendedSubmissionMedium.Paper
755
- * }]
756
- * },
757
- * tagIds: [CandidApi.TagId("string")],
758
- * schemaInstances: [{
759
- * schemaId: CandidApi.SchemaId("ec096b13-f80a-471d-aaeb-54b021c9d582"),
760
- * content: {
761
- * "provider_category": "internist",
762
- * "is_urgent_care": true,
763
- * "bmi": 24.2,
764
- * "age": 38
765
- * }
766
- * }],
767
- * externalId: CandidApi.EncounterExternalId("string"),
768
- * dateOfService: "2023-01-15",
769
- * endDateOfService: "2023-01-15",
770
- * patientAuthorizedRelease: true,
771
- * benefitsAssignedToProvider: true,
772
- * providerAcceptsAssignment: true,
773
- * appointmentType: "string",
774
- * existingMedications: [{
775
- * name: "Lisinopril",
776
- * rxCui: CandidApi.encounters.v4.RxCui("860975"),
777
- * dosage: "10mg",
778
- * dosageForm: "Tablet",
779
- * frequency: "Once Daily",
780
- * asNeeded: true
781
- * }],
782
- * vitals: {
783
- * heightIn: 70,
784
- * weightLbs: 165,
785
- * bloodPressureSystolicMmhg: 115,
786
- * bloodPressureDiastolicMmhg: 85,
787
- * bodyTemperatureF: 98,
788
- * hemoglobinGdl: 15.1,
789
- * hematocritPct: 51.2
790
- * },
791
- * interventions: [{
792
- * name: "Physical Therapy Session",
793
- * category: CandidApi.encounters.v4.InterventionCategory.Lifestyle,
794
- * description: "A session focused on improving muscular strength, flexibility, and range of motion post-injury.",
795
- * medication: {
796
- * name: "Lisinopril",
797
- * rxCui: CandidApi.encounters.v4.RxCui("860975"),
798
- * dosage: "10mg",
799
- * dosageForm: "Tablet",
800
- * frequency: "Once Daily",
801
- * asNeeded: true
802
- * },
803
- * labs: [{
804
- * name: "Genetic Health Labs",
805
- * code: "GH12345",
806
- * codeType: CandidApi.encounters.v4.LabCodeType.Quest
807
- * }]
808
- * }],
809
- * payToAddress: {
810
- * address1: "123 Main St",
811
- * address2: "Apt 1",
812
- * city: "New York",
813
- * state: CandidApi.State.Ny,
814
- * zipCode: "10001",
815
- * zipPlusFourCode: "1234"
816
- * },
817
- * synchronicity: CandidApi.encounters.v4.SynchronicityType.Synchronous,
818
- * billableStatus: CandidApi.encounters.v4.BillableStatusType.Billable,
819
- * additionalInformation: "string",
820
- * serviceAuthorizationExceptionCode: CandidApi.encounters.v4.ServiceAuthorizationExceptionCode.C1,
821
- * admissionDate: "2023-01-15",
822
- * dischargeDate: "2023-01-15",
823
- * onsetOfCurrentIllnessOrSymptomDate: "2023-01-15",
824
- * lastMenstrualPeriodDate: "2023-01-15",
825
- * delayReasonCode: CandidApi.DelayReasonCode.C1
826
- * })
827
- */
828
- createFromPreEncounterPatientInternal(request: CandidApi.encounters.v4.EncounterCreateFromPreEncounter, requestOptions?: V4.RequestOptions): Promise<core.APIResponse<CandidApi.encounters.v4.Encounter, CandidApi.encounters.v4.createFromPreEncounterPatientInternal.Error>>;
829
606
  /**
830
607
  * @param {CandidApi.EncounterId} encounterId
831
608
  * @param {CandidApi.encounters.v4.EncounterUpdate} request
@@ -132,7 +132,7 @@ class V4 {
132
132
  Authorization: yield this._getAuthorizationHeader(),
133
133
  "X-Fern-Language": "JavaScript",
134
134
  "X-Fern-SDK-Name": "candidhealth",
135
- "X-Fern-SDK-Version": "0.39.4",
135
+ "X-Fern-SDK-Version": "0.39.5",
136
136
  "X-Fern-Runtime": core.RUNTIME.type,
137
137
  "X-Fern-Runtime-Version": core.RUNTIME.version,
138
138
  },
@@ -178,7 +178,7 @@ class V4 {
178
178
  Authorization: yield this._getAuthorizationHeader(),
179
179
  "X-Fern-Language": "JavaScript",
180
180
  "X-Fern-SDK-Name": "candidhealth",
181
- "X-Fern-SDK-Version": "0.39.4",
181
+ "X-Fern-SDK-Version": "0.39.5",
182
182
  "X-Fern-Runtime": core.RUNTIME.type,
183
183
  "X-Fern-Runtime-Version": core.RUNTIME.version,
184
184
  },
@@ -547,7 +547,7 @@ class V4 {
547
547
  Authorization: yield this._getAuthorizationHeader(),
548
548
  "X-Fern-Language": "JavaScript",
549
549
  "X-Fern-SDK-Name": "candidhealth",
550
- "X-Fern-SDK-Version": "0.39.4",
550
+ "X-Fern-SDK-Version": "0.39.5",
551
551
  "X-Fern-Runtime": core.RUNTIME.type,
552
552
  "X-Fern-Runtime-Version": core.RUNTIME.version,
553
553
  },
@@ -830,7 +830,7 @@ class V4 {
830
830
  Authorization: yield this._getAuthorizationHeader(),
831
831
  "X-Fern-Language": "JavaScript",
832
832
  "X-Fern-SDK-Name": "candidhealth",
833
- "X-Fern-SDK-Version": "0.39.4",
833
+ "X-Fern-SDK-Version": "0.39.5",
834
834
  "X-Fern-Runtime": core.RUNTIME.type,
835
835
  "X-Fern-Runtime-Version": core.RUNTIME.version,
836
836
  },
@@ -879,289 +879,6 @@ class V4 {
879
879
  };
880
880
  });
881
881
  }
882
- /**
883
- * Create an encounter from a pre-encounter patient and appointment. This endpoint is intended to be used by consumers who are managing
884
- * patients and appointments in the pre-encounter service and is currently under development. Consumers who are not taking advantage
885
- * of the pre-encounter service should use the standard create endpoint.
886
- *
887
- * The endpoint will create an encounter from the provided fields, pulling information from the provided patient and appointment objects
888
- * where applicable. In particular, the following fields are populated from the patient and appointment objects:
889
- *
890
- * - Patient
891
- * - Referring Provider
892
- * - Subscriber Primary
893
- * - Subscriber Secondary
894
- * - Referral Number
895
- * - Responsible Party
896
- * - Guarantor
897
- *
898
- * Utilizing this endpoint opts you into automatic updating of the encounter when the patient or appointment is updated, assuming the
899
- * encounter has not already been submitted or adjudicated.
900
- *
901
- * @param {CandidApi.encounters.v4.EncounterCreateFromPreEncounter} request
902
- * @param {V4.RequestOptions} requestOptions - Request-specific configuration.
903
- *
904
- * @example
905
- * await client.encounters.v4.createFromPreEncounterPatientInternal({
906
- * preEncounterPatientId: CandidApi.PreEncounterPatientId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
907
- * preEncounterAppointmentIds: [CandidApi.PreEncounterAppointmentId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")],
908
- * billingProvider: {
909
- * address: {
910
- * address1: "123 Main St",
911
- * address2: "Apt 1",
912
- * city: "New York",
913
- * state: CandidApi.State.Ny,
914
- * zipCode: "10001",
915
- * zipPlusFourCode: "1234"
916
- * },
917
- * taxId: "string",
918
- * npi: "string",
919
- * taxonomyCode: "string",
920
- * providerCommercialLicenseType: CandidApi.BillingProviderCommercialLicenseType.LicensedClinicalSocialWorker,
921
- * firstName: "string",
922
- * lastName: "string",
923
- * organizationName: "string"
924
- * },
925
- * renderingProvider: {
926
- * npi: "string",
927
- * taxonomyCode: "string",
928
- * address: {
929
- * address1: "123 Main St",
930
- * address2: "Apt 1",
931
- * city: "New York",
932
- * state: CandidApi.State.Ny,
933
- * zipCode: "10001",
934
- * zipPlusFourCode: "1234"
935
- * },
936
- * firstName: "string",
937
- * lastName: "string",
938
- * organizationName: "string"
939
- * },
940
- * initialReferringProvider: {
941
- * npi: "string",
942
- * taxonomyCode: "string",
943
- * address: {
944
- * address1: "123 Main St",
945
- * address2: "Apt 1",
946
- * city: "New York",
947
- * state: CandidApi.State.Ny,
948
- * zipCode: "10001",
949
- * zipPlusFourCode: "1234"
950
- * },
951
- * qualifier: CandidApi.QualifierCode.Dq,
952
- * firstName: "string",
953
- * lastName: "string",
954
- * organizationName: "string"
955
- * },
956
- * supervisingProvider: {
957
- * npi: "string",
958
- * taxonomyCode: "string",
959
- * address: {
960
- * address1: "123 Main St",
961
- * address2: "Apt 1",
962
- * city: "New York",
963
- * state: CandidApi.State.Ny,
964
- * zipCode: "10001",
965
- * zipPlusFourCode: "1234"
966
- * },
967
- * firstName: "string",
968
- * lastName: "string",
969
- * organizationName: "string"
970
- * },
971
- * serviceFacility: {
972
- * organizationName: "string",
973
- * npi: "string",
974
- * address: {
975
- * address1: "123 Main St",
976
- * address2: "Apt 1",
977
- * city: "New York",
978
- * state: CandidApi.State.Ny,
979
- * zipCode: "10001",
980
- * zipPlusFourCode: "1234"
981
- * },
982
- * secondaryIdentification: "string"
983
- * },
984
- * diagnoses: [{
985
- * name: "string",
986
- * codeType: CandidApi.DiagnosisTypeCode.Abf,
987
- * code: "string"
988
- * }],
989
- * clinicalNotes: [{
990
- * category: CandidApi.encounters.v4.NoteCategory.Clinical,
991
- * notes: []
992
- * }],
993
- * billingNotes: [{
994
- * text: "string"
995
- * }],
996
- * placeOfServiceCode: CandidApi.FacilityTypeCode.Pharmacy,
997
- * patientHistories: [{
998
- * category: CandidApi.encounters.v4.PatientHistoryCategoryEnum.PresentIllness,
999
- * questions: [{
1000
- * id: CandidApi.encounters.v4.IntakeQuestionId("6E7FBCE4-A8EA-46D0-A8D8-FF83CA3BB176"),
1001
- * text: "Do you have any allergies?",
1002
- * responses: [{
1003
- * response: "No allergies",
1004
- * followUps: [{
1005
- * id: CandidApi.encounters.v4.IntakeFollowUpId("4F3D57F9-AC94-49D6-87E4-E804B709917A"),
1006
- * text: "Do you have any allergies?",
1007
- * response: "No allergies"
1008
- * }]
1009
- * }]
1010
- * }]
1011
- * }],
1012
- * serviceLines: [{
1013
- * procedureCode: "string",
1014
- * quantity: CandidApi.Decimal("string"),
1015
- * units: CandidApi.ServiceLineUnits.Mj,
1016
- * diagnosisPointers: []
1017
- * }],
1018
- * externalClaimSubmission: {
1019
- * claimCreatedAt: new Date("2023-01-01T12:00:00.000Z"),
1020
- * patientControlNumber: "PATIENT_CONTROL_NUMBER",
1021
- * submissionRecords: [{
1022
- * submittedAt: new Date("2023-01-01T13:00:00.000Z"),
1023
- * claimFrequencyCode: CandidApi.claimSubmission.v1.ClaimFrequencyTypeCode.Original,
1024
- * payerResponsibility: CandidApi.ClaimSubmissionPayerResponsibilityType.Primary,
1025
- * intendedSubmissionMedium: CandidApi.IntendedSubmissionMedium.Electronic
1026
- * }, {
1027
- * submittedAt: new Date("2023-01-04T12:00:00.000Z"),
1028
- * claimFrequencyCode: CandidApi.claimSubmission.v1.ClaimFrequencyTypeCode.Replacement,
1029
- * payerResponsibility: CandidApi.ClaimSubmissionPayerResponsibilityType.Primary,
1030
- * intendedSubmissionMedium: CandidApi.IntendedSubmissionMedium.Paper
1031
- * }]
1032
- * },
1033
- * tagIds: [CandidApi.TagId("string")],
1034
- * schemaInstances: [{
1035
- * schemaId: CandidApi.SchemaId("ec096b13-f80a-471d-aaeb-54b021c9d582"),
1036
- * content: {
1037
- * "provider_category": "internist",
1038
- * "is_urgent_care": true,
1039
- * "bmi": 24.2,
1040
- * "age": 38
1041
- * }
1042
- * }],
1043
- * externalId: CandidApi.EncounterExternalId("string"),
1044
- * dateOfService: "2023-01-15",
1045
- * endDateOfService: "2023-01-15",
1046
- * patientAuthorizedRelease: true,
1047
- * benefitsAssignedToProvider: true,
1048
- * providerAcceptsAssignment: true,
1049
- * appointmentType: "string",
1050
- * existingMedications: [{
1051
- * name: "Lisinopril",
1052
- * rxCui: CandidApi.encounters.v4.RxCui("860975"),
1053
- * dosage: "10mg",
1054
- * dosageForm: "Tablet",
1055
- * frequency: "Once Daily",
1056
- * asNeeded: true
1057
- * }],
1058
- * vitals: {
1059
- * heightIn: 70,
1060
- * weightLbs: 165,
1061
- * bloodPressureSystolicMmhg: 115,
1062
- * bloodPressureDiastolicMmhg: 85,
1063
- * bodyTemperatureF: 98,
1064
- * hemoglobinGdl: 15.1,
1065
- * hematocritPct: 51.2
1066
- * },
1067
- * interventions: [{
1068
- * name: "Physical Therapy Session",
1069
- * category: CandidApi.encounters.v4.InterventionCategory.Lifestyle,
1070
- * description: "A session focused on improving muscular strength, flexibility, and range of motion post-injury.",
1071
- * medication: {
1072
- * name: "Lisinopril",
1073
- * rxCui: CandidApi.encounters.v4.RxCui("860975"),
1074
- * dosage: "10mg",
1075
- * dosageForm: "Tablet",
1076
- * frequency: "Once Daily",
1077
- * asNeeded: true
1078
- * },
1079
- * labs: [{
1080
- * name: "Genetic Health Labs",
1081
- * code: "GH12345",
1082
- * codeType: CandidApi.encounters.v4.LabCodeType.Quest
1083
- * }]
1084
- * }],
1085
- * payToAddress: {
1086
- * address1: "123 Main St",
1087
- * address2: "Apt 1",
1088
- * city: "New York",
1089
- * state: CandidApi.State.Ny,
1090
- * zipCode: "10001",
1091
- * zipPlusFourCode: "1234"
1092
- * },
1093
- * synchronicity: CandidApi.encounters.v4.SynchronicityType.Synchronous,
1094
- * billableStatus: CandidApi.encounters.v4.BillableStatusType.Billable,
1095
- * additionalInformation: "string",
1096
- * serviceAuthorizationExceptionCode: CandidApi.encounters.v4.ServiceAuthorizationExceptionCode.C1,
1097
- * admissionDate: "2023-01-15",
1098
- * dischargeDate: "2023-01-15",
1099
- * onsetOfCurrentIllnessOrSymptomDate: "2023-01-15",
1100
- * lastMenstrualPeriodDate: "2023-01-15",
1101
- * delayReasonCode: CandidApi.DelayReasonCode.C1
1102
- * })
1103
- */
1104
- createFromPreEncounterPatientInternal(request, requestOptions) {
1105
- var _a, _b;
1106
- return __awaiter(this, void 0, void 0, function* () {
1107
- const _response = yield core.fetcher({
1108
- url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
1109
- .candidApi, "/api/encounters/v4/create-from-pre-encounter-internal"),
1110
- method: "POST",
1111
- headers: {
1112
- Authorization: yield this._getAuthorizationHeader(),
1113
- "X-Fern-Language": "JavaScript",
1114
- "X-Fern-SDK-Name": "candidhealth",
1115
- "X-Fern-SDK-Version": "0.39.4",
1116
- "X-Fern-Runtime": core.RUNTIME.type,
1117
- "X-Fern-Runtime-Version": core.RUNTIME.version,
1118
- },
1119
- contentType: "application/json",
1120
- requestType: "json",
1121
- body: serializers.encounters.v4.EncounterCreateFromPreEncounter.jsonOrThrow(request, {
1122
- unrecognizedObjectKeys: "strip",
1123
- }),
1124
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
1125
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
1126
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1127
- });
1128
- if (_response.ok) {
1129
- return {
1130
- ok: true,
1131
- body: serializers.encounters.v4.Encounter.parseOrThrow(_response.body, {
1132
- unrecognizedObjectKeys: "passthrough",
1133
- allowUnrecognizedUnionMembers: true,
1134
- allowUnrecognizedEnumValues: true,
1135
- breadcrumbsPrefix: ["response"],
1136
- }),
1137
- };
1138
- }
1139
- if (_response.error.reason === "status-code") {
1140
- switch ((_b = _response.error.body) === null || _b === void 0 ? void 0 : _b.errorName) {
1141
- case "EncounterExternalIdUniquenessError":
1142
- case "EncounterPatientControlNumberUniquenessError":
1143
- case "EntityNotFoundError":
1144
- case "HttpRequestValidationsError":
1145
- case "SchemaInstanceValidationHttpFailure":
1146
- case "HttpRequestValidationError":
1147
- return {
1148
- ok: false,
1149
- error: serializers.encounters.v4.createFromPreEncounterPatientInternal.Error.parseOrThrow(_response.error
1150
- .body, {
1151
- unrecognizedObjectKeys: "passthrough",
1152
- allowUnrecognizedUnionMembers: true,
1153
- allowUnrecognizedEnumValues: true,
1154
- breadcrumbsPrefix: ["response"],
1155
- }),
1156
- };
1157
- }
1158
- }
1159
- return {
1160
- ok: false,
1161
- error: CandidApi.encounters.v4.createFromPreEncounterPatientInternal.Error._unknown(_response.error),
1162
- };
1163
- });
1164
- }
1165
882
  /**
1166
883
  * @param {CandidApi.EncounterId} encounterId
1167
884
  * @param {CandidApi.encounters.v4.EncounterUpdate} request
@@ -1184,7 +901,7 @@ class V4 {
1184
901
  Authorization: yield this._getAuthorizationHeader(),
1185
902
  "X-Fern-Language": "JavaScript",
1186
903
  "X-Fern-SDK-Name": "candidhealth",
1187
- "X-Fern-SDK-Version": "0.39.4",
904
+ "X-Fern-SDK-Version": "0.39.5",
1188
905
  "X-Fern-Runtime": core.RUNTIME.type,
1189
906
  "X-Fern-Runtime-Version": core.RUNTIME.version,
1190
907
  },
@@ -3,5 +3,4 @@ export * as getAll from "./getAll";
3
3
  export * as get from "./get";
4
4
  export * as create from "./create";
5
5
  export * as createFromPreEncounterPatient from "./createFromPreEncounterPatient";
6
- export * as createFromPreEncounterPatientInternal from "./createFromPreEncounterPatientInternal";
7
6
  export * as update from "./update";
@@ -26,11 +26,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.update = exports.createFromPreEncounterPatientInternal = exports.createFromPreEncounterPatient = exports.create = exports.get = exports.getAll = void 0;
29
+ exports.update = exports.createFromPreEncounterPatient = exports.create = exports.get = exports.getAll = void 0;
30
30
  __exportStar(require("./requests"), exports);
31
31
  exports.getAll = __importStar(require("./getAll"));
32
32
  exports.get = __importStar(require("./get"));
33
33
  exports.create = __importStar(require("./create"));
34
34
  exports.createFromPreEncounterPatient = __importStar(require("./createFromPreEncounterPatient"));
35
- exports.createFromPreEncounterPatientInternal = __importStar(require("./createFromPreEncounterPatientInternal"));
36
35
  exports.update = __importStar(require("./update"));
@@ -79,7 +79,7 @@ class V1 {
79
79
  Authorization: yield this._getAuthorizationHeader(),
80
80
  "X-Fern-Language": "JavaScript",
81
81
  "X-Fern-SDK-Name": "candidhealth",
82
- "X-Fern-SDK-Version": "0.39.4",
82
+ "X-Fern-SDK-Version": "0.39.5",
83
83
  "X-Fern-Runtime": core.RUNTIME.type,
84
84
  "X-Fern-Runtime-Version": core.RUNTIME.version,
85
85
  },
@@ -96,7 +96,7 @@ class V2 {
96
96
  Authorization: yield this._getAuthorizationHeader(),
97
97
  "X-Fern-Language": "JavaScript",
98
98
  "X-Fern-SDK-Name": "candidhealth",
99
- "X-Fern-SDK-Version": "0.39.4",
99
+ "X-Fern-SDK-Version": "0.39.5",
100
100
  "X-Fern-Runtime": core.RUNTIME.type,
101
101
  "X-Fern-Runtime-Version": core.RUNTIME.version,
102
102
  },
@@ -189,7 +189,7 @@ class V2 {
189
189
  Authorization: yield this._getAuthorizationHeader(),
190
190
  "X-Fern-Language": "JavaScript",
191
191
  "X-Fern-SDK-Name": "candidhealth",
192
- "X-Fern-SDK-Version": "0.39.4",
192
+ "X-Fern-SDK-Version": "0.39.5",
193
193
  "X-Fern-Runtime": core.RUNTIME.type,
194
194
  "X-Fern-Runtime-Version": core.RUNTIME.version,
195
195
  },
@@ -87,7 +87,7 @@ class V3 {
87
87
  Authorization: yield this._getAuthorizationHeader(),
88
88
  "X-Fern-Language": "JavaScript",
89
89
  "X-Fern-SDK-Name": "candidhealth",
90
- "X-Fern-SDK-Version": "0.39.4",
90
+ "X-Fern-SDK-Version": "0.39.5",
91
91
  "X-Fern-Runtime": core.RUNTIME.type,
92
92
  "X-Fern-Runtime-Version": core.RUNTIME.version,
93
93
  },
@@ -82,7 +82,7 @@ class V1 {
82
82
  Authorization: yield this._getAuthorizationHeader(),
83
83
  "X-Fern-Language": "JavaScript",
84
84
  "X-Fern-SDK-Name": "candidhealth",
85
- "X-Fern-SDK-Version": "0.39.4",
85
+ "X-Fern-SDK-Version": "0.39.5",
86
86
  "X-Fern-Runtime": core.RUNTIME.type,
87
87
  "X-Fern-Runtime-Version": core.RUNTIME.version,
88
88
  },