@aitmed/aitmed-document-template 1.46.0 → 1.48.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.
@@ -1,7 +1,8 @@
1
+ import { Ref } from 'vue';
1
2
  import aitmedTemplateRole from '../utils/role.config';
2
3
  import aitmedTemplateType from '../utils/type.config';
3
4
  interface DOCUMENT_OPTONS {
4
- data?: Record<string, any>;
5
+ data?: Ref<Record<string, any>>;
5
6
  ecos?: any;
6
7
  role?: aitmedTemplateRole;
7
8
  docType?: aitmedTemplateType;
@@ -56,15 +57,13 @@ interface Info {
56
57
  locationIds: Array<string>;
57
58
  patientId: string;
58
59
  }
59
- export declare const setFormData: (data: Record<string, any>) => void;
60
60
  export declare const useDocumentTemplateStore: import("pinia").StoreDefinition<"documentTempalte", import("pinia")._UnwrapAll<Pick<{
61
61
  setDocumentTemplate: ({ ecos, role, docType, info, relatedDom }: Omit<DOCUMENT_OPTONS, "data">) => void;
62
62
  getDocumentTemplate: () => {
63
- data: Record<string, any>;
64
- ecos: any;
65
- role: aitmedTemplateRole;
66
- docType: aitmedTemplateType;
67
- info: {
63
+ ecos?: any;
64
+ role?: aitmedTemplateRole | undefined;
65
+ docType?: aitmedTemplateType | undefined;
66
+ info?: {
68
67
  rootNotebookID: string;
69
68
  providerSignatureInfo?: {
70
69
  eid: string;
@@ -84,17 +83,19 @@ export declare const useDocumentTemplateStore: import("pinia").StoreDefinition<"
84
83
  facilityId: string;
85
84
  locationIds: Array<string>;
86
85
  patientId: string;
87
- };
88
- relatedDom: HTMLElement | null;
86
+ } | undefined;
87
+ relatedDom?: HTMLElement | null | undefined;
88
+ data: Ref<Record<string, any>>;
89
89
  };
90
- }, never>>, Pick<{
90
+ setFormData: (newData: Record<string, any>) => void;
91
+ data: Ref<Record<string, any>>;
92
+ }, "data">>, Pick<{
91
93
  setDocumentTemplate: ({ ecos, role, docType, info, relatedDom }: Omit<DOCUMENT_OPTONS, "data">) => void;
92
94
  getDocumentTemplate: () => {
93
- data: Record<string, any>;
94
- ecos: any;
95
- role: aitmedTemplateRole;
96
- docType: aitmedTemplateType;
97
- info: {
95
+ ecos?: any;
96
+ role?: aitmedTemplateRole | undefined;
97
+ docType?: aitmedTemplateType | undefined;
98
+ info?: {
98
99
  rootNotebookID: string;
99
100
  providerSignatureInfo?: {
100
101
  eid: string;
@@ -114,17 +115,19 @@ export declare const useDocumentTemplateStore: import("pinia").StoreDefinition<"
114
115
  facilityId: string;
115
116
  locationIds: Array<string>;
116
117
  patientId: string;
117
- };
118
- relatedDom: HTMLElement | null;
118
+ } | undefined;
119
+ relatedDom?: HTMLElement | null | undefined;
120
+ data: Ref<Record<string, any>>;
119
121
  };
122
+ setFormData: (newData: Record<string, any>) => void;
123
+ data: Ref<Record<string, any>>;
120
124
  }, never>, Pick<{
121
125
  setDocumentTemplate: ({ ecos, role, docType, info, relatedDom }: Omit<DOCUMENT_OPTONS, "data">) => void;
122
126
  getDocumentTemplate: () => {
123
- data: Record<string, any>;
124
- ecos: any;
125
- role: aitmedTemplateRole;
126
- docType: aitmedTemplateType;
127
- info: {
127
+ ecos?: any;
128
+ role?: aitmedTemplateRole | undefined;
129
+ docType?: aitmedTemplateType | undefined;
130
+ info?: {
128
131
  rootNotebookID: string;
129
132
  providerSignatureInfo?: {
130
133
  eid: string;
@@ -144,10 +147,13 @@ export declare const useDocumentTemplateStore: import("pinia").StoreDefinition<"
144
147
  facilityId: string;
145
148
  locationIds: Array<string>;
146
149
  patientId: string;
147
- };
148
- relatedDom: HTMLElement | null;
150
+ } | undefined;
151
+ relatedDom?: HTMLElement | null | undefined;
152
+ data: Ref<Record<string, any>>;
149
153
  };
150
- }, "setDocumentTemplate" | "getDocumentTemplate">>;
154
+ setFormData: (newData: Record<string, any>) => void;
155
+ data: Ref<Record<string, any>>;
156
+ }, "setDocumentTemplate" | "getDocumentTemplate" | "setFormData">>;
151
157
  export declare const useCalendarPickerStore: import("pinia").StoreDefinition<"calendarPicker", import("pinia")._UnwrapAll<Pick<{
152
158
  getCalendarPciker: () => {
153
159
  status: boolean;