generio-sdk 1.0.32 → 1.0.34

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 CHANGED
@@ -158,6 +158,52 @@ 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
196
+ //#region src/models/AppendDiagnoseFormHandlebarsModel.d.ts
197
+ interface AppendDiagnoseFormHandlebarsModel {
198
+ index: number;
199
+ }
200
+ //#endregion
201
+ //#region src/models/FindingGeneratorFormHandlebarsModel.d.ts
202
+ interface FindingGeneratorFormHandlebarsModel {
203
+ formRows: ElementRow[];
204
+ appendDiagnoses: AppendDiagnoseFormHandlebarsModel[];
205
+ }
206
+ //#endregion
161
207
  //#region src/index.d.ts
162
208
  declare const GENERIO_ORIGIN = "https://localhost:7052";
163
209
  declare const GENERIO_IS_LOGGED_IN = "generio-is-logged-in";
@@ -172,4 +218,4 @@ declare function logout(): Promise<LogoutOutputModel>;
172
218
  declare function setupPostMessageListener(generioReadyHandler?: (payload: GenerioReadyOutputModel) => void): void;
173
219
  declare function loadExaminationPromise(examinationId: number, studyInstanceUId: string): Promise<OriginDetail>;
174
220
  //#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 };
221
+ export { type AppendDiagnoseFormHandlebarsModel, type Column, type ElementColumn, type ElementRow, type ElementSubRow, type FindingGeneratorFormHandlebarsModel, 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
- const e=`https://localhost:7052`,t=`generio-is-logged-in`,n=`generio-logged-in-email`;async function r(t){e+``;let n=await fetch(`https://localhost:7052/api/generioApp/recognizeExaminationByUserContext`,{method:`POST`,credentials:`include`,body:JSON.stringify(t),headers:{"Content-Type":`application/json`}});return n.ok?n.json():{isSuccess:!1}}async function i(e,t){return{}}async function a(e,t){return{}}async function o(e,t){return{}}async function s(e){return{}}async function c(t){return(await fetch(e+`/api/cookiesAuth/login`,{method:`POST`,credentials:`include`,headers:{"Content-Type":`application/json`},body:JSON.stringify(t)})).ok?{isSuccess:!0}:{isSuccess:!1}}async function l(){let t=await fetch(e+`/api/cookiesAuth/logout`,{method:`POST`,credentials:`include`,headers:{"Content-Type":`application/json`}});return t.ok||t.status===401||t.status===403?{isSuccess:!0}:{isSuccess:!1}}function u(t){window.addEventListener(`message`,n=>{e==n.origin&&(console.info(`PostMessageListener: Received message from origin: ${n.origin}`,n.data),n.data.action==`generioReady`&&t&&t(n.data.payload))},!1)}async function d(t,n){let r=await fetch(e+`/api/GenerioApp/LoadExamination`,{method:`POST`,credentials:`include`,headers:{"Content-Type":`application/json`},body:JSON.stringify({examinationId:t,studyInstanceUId:n})});if(!r.ok)throw Error(`Failed to load examination data`);return await r.json()}export{t as GENERIO_IS_LOGGED_IN,n as GENERIO_LOGGED_IN_EMAIL,e as GENERIO_ORIGIN,s as getExaminationMessage,o as getExtParamValueByStudyInstanceUId,d as loadExaminationPromise,c as login,l as logout,r as recognizeExamination,a as sendMeasurements,i as setExtParams,u as setupPostMessageListener};
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};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "generio-sdk",
3
- "version": "1.0.32",
3
+ "version": "1.0.34",
4
4
  "description": "SDK library for generio integration",
5
5
  "type": "module",
6
6
  "license": "MIT",