oro-sdk-apis 1.34.1 → 1.35.0-dev3

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.
@@ -74,6 +74,60 @@ export declare enum TaskStatus {
74
74
  Blocked = "Blocked",
75
75
  Done = "Done"
76
76
  }
77
+ export declare enum ClosedReasonType {
78
+ /**
79
+ * A completed consultation
80
+ */
81
+ Completed = "Completed",
82
+ /**
83
+ * The conclusion was that what the patient submitted was not a disease
84
+ */
85
+ NotADisease = "NotADisease",
86
+ /**
87
+ * The consultation was not appropriate for virtual
88
+ */
89
+ NotAppropriateForVirtual = "NotAppropriateForVirtual",
90
+ /**
91
+ * Any other reason why the consultation was closed
92
+ */
93
+ Other = "Other",
94
+ /**
95
+ * A consultation that is required to be done in person
96
+ */
97
+ RequiresInPerson = "RequiresInPerson"
98
+ }
99
+ export interface ClosedConsultReasonInsertFields {
100
+ /**
101
+ * The uuid of the consultation
102
+ */
103
+ consult_uuid: string;
104
+ /**
105
+ * The reason why the consultation was closed
106
+ */
107
+ closed_reason_type: ClosedReasonType;
108
+ /**
109
+ * The description why the consultation was closed
110
+ */
111
+ closed_reason_description: string;
112
+ /**
113
+ * When the consultation was closed
114
+ */
115
+ created_at: string;
116
+ }
117
+ export interface ConsultClosedReason {
118
+ /**
119
+ * The reason why the consultation was closed
120
+ */
121
+ closedReasonType: ClosedReasonType;
122
+ /**
123
+ * The description why the consultation was closed
124
+ */
125
+ closedReasonDescription: string;
126
+ /**
127
+ * When the consultation was closed
128
+ */
129
+ createdAt: string;
130
+ }
77
131
  export interface ConsultRequest {
78
132
  uuidPractice: string;
79
133
  tagSpecialtyRequired: string;
@@ -96,6 +150,7 @@ export interface Consult {
96
150
  statusTask?: TaskStatus;
97
151
  hasTransmissions?: boolean;
98
152
  assignedAssistant?: ConsultAssignedAssistant[];
153
+ closeConsultReason?: ConsultClosedReason[];
99
154
  shortId?: string;
100
155
  createdAt?: string;
101
156
  expiresAt?: string;
@@ -916,6 +916,33 @@ var ApisPracticeManager = /*#__PURE__*/function () {
916
916
  TaskStatus["Done"] = "Done";
917
917
  })(exports.TaskStatus || (exports.TaskStatus = {}));
918
918
 
919
+ (function (ClosedReasonType) {
920
+ /**
921
+ * A completed consultation
922
+ */
923
+ ClosedReasonType["Completed"] = "Completed";
924
+ /**
925
+ * The conclusion was that what the patient submitted was not a disease
926
+ */
927
+
928
+ ClosedReasonType["NotADisease"] = "NotADisease";
929
+ /**
930
+ * The consultation was not appropriate for virtual
931
+ */
932
+
933
+ ClosedReasonType["NotAppropriateForVirtual"] = "NotAppropriateForVirtual";
934
+ /**
935
+ * Any other reason why the consultation was closed
936
+ */
937
+
938
+ ClosedReasonType["Other"] = "Other";
939
+ /**
940
+ * A consultation that is required to be done in person
941
+ */
942
+
943
+ ClosedReasonType["RequiresInPerson"] = "RequiresInPerson";
944
+ })(exports.ClosedReasonType || (exports.ClosedReasonType = {}));
945
+
919
946
  (function (VisibilityType) {
920
947
  VisibilityType["Generic"] = "Generic";
921
948
  VisibilityType["Private"] = "Private";
@@ -2486,10 +2513,12 @@ var TellerService = /*#__PURE__*/function () {
2486
2513
  return lockboxDataStore;
2487
2514
  }();
2488
2515
 
2489
- _proto.updateConsultByUUID = function updateConsultByUUID(patientUuid, uuidConsult, statusMedical, neverExpires) {
2516
+ _proto.updateConsultByUUID = function updateConsultByUUID(patientUuid, uuidConsult, statusMedical, closedReasonType, closedReasonDescription, neverExpires) {
2490
2517
  return this.api.put(this.baseURL + "/v1/consults/" + uuidConsult, {
2491
2518
  patientUuid: patientUuid,
2492
2519
  statusMedical: statusMedical,
2520
+ closedReasonType: closedReasonType,
2521
+ closedReasonDescription: closedReasonDescription,
2493
2522
  neverExpires: neverExpires
2494
2523
  });
2495
2524
  }