hayun-vite 0.5.0 → 0.5.1
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/data/sampleData.js +1 -0
- package/package.json +1 -1
- package/src/Form/Form.js +3 -1
- package/src/main.js +2 -0
package/data/sampleData.js
CHANGED
package/package.json
CHANGED
package/src/Form/Form.js
CHANGED
@@ -137,7 +137,9 @@ export default class Form {
|
|
137
137
|
name: patientData.name,
|
138
138
|
lastName: patientData.lastName,
|
139
139
|
gender: patientData?.gender,
|
140
|
-
|
140
|
+
// خط زیر محاسبه درست سن هست. موقتا کامنت میشود تا در اپ اصلی فیلد سن رو در سشن ها قرار دهیم
|
141
|
+
// age: patientData.sessions[sessionIndex]?.age,
|
142
|
+
age: patientData?.age,
|
141
143
|
referrer: patientData.sessions[sessionIndex]?.referrer,
|
142
144
|
date: new Date().toLocaleDateString('fa-IR'),
|
143
145
|
|
package/src/main.js
CHANGED
@@ -41,6 +41,8 @@ LAudiogram.update({
|
|
41
41
|
*/
|
42
42
|
const forms = new Forms({ container: document.getElementById('forms-div'), name: 'form1' });
|
43
43
|
forms.update({ officeData, patientData, sessionIndex: 0 })
|
44
|
+
console.log(patientData);
|
45
|
+
|
44
46
|
|
45
47
|
|
46
48
|
// import javascriptLogo from './javascript.svg'
|