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.
@@ -31,6 +31,7 @@ const patientData = {
31
31
  name: "سید علی اکبر الزمان",
32
32
  lastName: "پرنده بافقی یزدی",
33
33
  gender: "مرد",
34
+ age: 75,
34
35
  birthday: { year: 1356, month: 5, day: 3 },
35
36
  nationalCode: "0321456546",
36
37
  createDate: "2025/5/5", //تاریخ و ساعت ایجاد بیمار
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "hayun-vite",
3
3
  "private": false,
4
- "version": "0.5.0",
4
+ "version": "0.5.1",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite",
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
- age: patientData.sessions[sessionIndex]?.age,
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'