generio-sdk 1.0.32 → 1.0.33
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/dist/index.d.ts +36 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -158,6 +158,41 @@ interface OriginDetail {
|
|
|
158
158
|
cultureShort: string;
|
|
159
159
|
}
|
|
160
160
|
//#endregion
|
|
161
|
+
//#region src/models/Column.d.ts
|
|
162
|
+
interface Column {
|
|
163
|
+
formTypeId: FormTypeEnum;
|
|
164
|
+
formValue?: string;
|
|
165
|
+
finding?: string;
|
|
166
|
+
conclusion?: string;
|
|
167
|
+
guid: string;
|
|
168
|
+
radLexId?: string;
|
|
169
|
+
extParam?: string;
|
|
170
|
+
columnIndex?: number;
|
|
171
|
+
elementIndex?: number;
|
|
172
|
+
visualizeColumn?: boolean;
|
|
173
|
+
}
|
|
174
|
+
//#endregion
|
|
175
|
+
//#region src/models/ElementColumn.d.ts
|
|
176
|
+
interface ElementColumn extends Column {
|
|
177
|
+
elementSelectOptions?: Column[];
|
|
178
|
+
isDistance?: boolean;
|
|
179
|
+
preselected?: boolean;
|
|
180
|
+
}
|
|
181
|
+
//#endregion
|
|
182
|
+
//#region src/models/ElementSubRow.d.ts
|
|
183
|
+
interface ElementSubRow {
|
|
184
|
+
columns: Array<ElementColumn>;
|
|
185
|
+
}
|
|
186
|
+
//#endregion
|
|
187
|
+
//#region src/models/ElementRow.d.ts
|
|
188
|
+
interface ElementRow {
|
|
189
|
+
showHideElementId: string;
|
|
190
|
+
hrBeforeRow: boolean;
|
|
191
|
+
rowIndex: number;
|
|
192
|
+
visualizeRow: boolean;
|
|
193
|
+
subRows: Array<ElementSubRow>;
|
|
194
|
+
}
|
|
195
|
+
//#endregion
|
|
161
196
|
//#region src/index.d.ts
|
|
162
197
|
declare const GENERIO_ORIGIN = "https://localhost:7052";
|
|
163
198
|
declare const GENERIO_IS_LOGGED_IN = "generio-is-logged-in";
|
|
@@ -172,4 +207,4 @@ declare function logout(): Promise<LogoutOutputModel>;
|
|
|
172
207
|
declare function setupPostMessageListener(generioReadyHandler?: (payload: GenerioReadyOutputModel) => void): void;
|
|
173
208
|
declare function loadExaminationPromise(examinationId: number, studyInstanceUId: string): Promise<OriginDetail>;
|
|
174
209
|
//#endregion
|
|
175
|
-
export { GENERIO_IS_LOGGED_IN, GENERIO_LOGGED_IN_EMAIL, GENERIO_ORIGIN, GetExaminationMessageOutputModel, GetExtParamValueByStudyInstanceUIdInputModel, GetExtParamValueByStudyInstanceUIdOutputModel, KeyValueModel, LoginInputModel, LoginOutputModel, LogoutOutputModel, MeasurementModel, RecognizeExaminationInputModel, RecognizeExaminationOutputModel, SendMeasurementsInputModel, SendMeasurementsOutputModel, SetExtParamsInputModel, SetExtParamsOutputModel, getExaminationMessage, getExtParamValueByStudyInstanceUId, loadExaminationPromise, login, logout, recognizeExamination, sendMeasurements, setExtParams, setupPostMessageListener };
|
|
210
|
+
export { type Column, type ElementColumn, type ElementRow, type ElementSubRow, FormTypeEnum, GENERIO_IS_LOGGED_IN, GENERIO_LOGGED_IN_EMAIL, GENERIO_ORIGIN, GetExaminationMessageOutputModel, GetExtParamValueByStudyInstanceUIdInputModel, GetExtParamValueByStudyInstanceUIdOutputModel, KeyValueModel, LoginInputModel, LoginOutputModel, LogoutOutputModel, MeasurementModel, type OriginDataItem, type OriginDetail, type OriginElementDetail, RecognizeExaminationInputModel, RecognizeExaminationOutputModel, SendMeasurementsInputModel, SendMeasurementsOutputModel, SetExtParamsInputModel, SetExtParamsOutputModel, getExaminationMessage, getExtParamValueByStudyInstanceUId, loadExaminationPromise, login, logout, recognizeExamination, sendMeasurements, setExtParams, setupPostMessageListener };
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
let e=function(e){return e[e.NewLine=0]=`NewLine`,e[e.Text=1]=`Text`,e[e.BoldText=2]=`BoldText`,e[e.CheckBox=3]=`CheckBox`,e[e.DropDownList=4]=`DropDownList`,e[e.InputText=5]=`InputText`,e[e.ConditionAndOr=6]=`ConditionAndOr`,e[e.Function=7]=`Function`,e[e.Condition=8]=`Condition`,e[e.Button=9]=`Button`,e[e.Append=10]=`Append`,e[e.DigitBox=11]=`DigitBox`,e[e.Merge=12]=`Merge`,e[e.Listing=13]=`Listing`,e[e.Bilateral=14]=`Bilateral`,e[e.Matrix=15]=`Matrix`,e[e.RememberedText=17]=`RememberedText`,e[e.InputTable=18]=`InputTable`,e[e.AppendDiagnose=19]=`AppendDiagnose`,e[e.MoveByExtParams=20]=`MoveByExtParams`,e}({});const t=`https://localhost:7052`,n=`generio-is-logged-in`,r=`generio-logged-in-email`;async function i(e){t+``;let n=await fetch(`https://localhost:7052/api/generioApp/recognizeExaminationByUserContext`,{method:`POST`,credentials:`include`,body:JSON.stringify(e),headers:{"Content-Type":`application/json`}});return n.ok?n.json():{isSuccess:!1}}async function a(e,t){return{}}async function o(e,t){return{}}async function s(e,t){return{}}async function c(e){return{}}async function l(e){return(await fetch(t+`/api/cookiesAuth/login`,{method:`POST`,credentials:`include`,headers:{"Content-Type":`application/json`},body:JSON.stringify(e)})).ok?{isSuccess:!0}:{isSuccess:!1}}async function u(){let e=await fetch(t+`/api/cookiesAuth/logout`,{method:`POST`,credentials:`include`,headers:{"Content-Type":`application/json`}});return e.ok||e.status===401||e.status===403?{isSuccess:!0}:{isSuccess:!1}}function d(e){window.addEventListener(`message`,n=>{t==n.origin&&(console.info(`PostMessageListener: Received message from origin: ${n.origin}`,n.data),n.data.action==`generioReady`&&e&&e(n.data.payload))},!1)}async function f(e,n){let r=await fetch(t+`/api/GenerioApp/LoadExamination`,{method:`POST`,credentials:`include`,headers:{"Content-Type":`application/json`},body:JSON.stringify({examinationId:e,studyInstanceUId:n})});if(!r.ok)throw Error(`Failed to load examination data`);return await r.json()}export{e as FormTypeEnum,n as GENERIO_IS_LOGGED_IN,r as GENERIO_LOGGED_IN_EMAIL,t as GENERIO_ORIGIN,c as getExaminationMessage,s as getExtParamValueByStudyInstanceUId,f as loadExaminationPromise,l as login,u as logout,i as recognizeExamination,o as sendMeasurements,a as setExtParams,d as setupPostMessageListener};
|