XML
metadata tutorial:
<?xml
version="1.0" encoding="windows-1250"?>
<XML>
<Entities>
<Storage
Type = "ADODB"
Connection = "...">
<String
Name = "char"/>
<Date
Name = "date"/>
<Integer
Name = "Integer"/>
</Storage>
<Classifier
Caption = "Classifier"
Abstract = "Yes">
<ID
Caption = "Code"
Identity = "Yes"
Type = "Float"/>
<Name
Caption = "Name"
Type = "String(100)"/>
</Classifier>
<Diagnosis
Caption = "Diagnosis"
Inherit = "Classifier"/>
<Visit
Caption = "Visit"
Inherit = "Classifier"/>
<Medical
Caption = "Medical"
Inherit = "Classifier">
<WorkTime
Caption = "Work time"
Type = "Integer"/>
<Curr
Caption = "Cost"
Type = "Float"/>
</Medical>
<Region
Caption = "Regions"
Inherit = "Classifier">
<Role
Caption = "Role"
Type ="Integer"/>
<Population
Caption = "Population"
Type ="Integer"/>
<Children
Caption = "Children"
Type ="Integer"/>
</Region>
<Subject
Caption = "Subject"
Abstract = "Yes"
Inherit = "Classifier">
<Code
Caption = "Code"
Type = "String(50)"/>
<Role
Caption = "Role"
Type = "Integer"/>
<Address
Caption = "Address"
Type = "String"/>
<Phone
Caption = "Phone"
Type = "String(30)"/>
<Fax
Caption = "Fax"
Type = "String(30)"/>
<Mobile
Caption = "Mobil phone"
Type = "String(30)"/>
<Pager
Caption = "Pager"
Type = "String(30)"/>
<EMail
Caption = "Email postbox"
Type = "String(30)"/>
<Birth
Caption = "Date of birth"
Type = "Date"/>
<Comment
Caption = "Comment"
Type = "Memo"/>
</Subject>
<Department
Caption = "Department"
Inherit = "Subject">
<Region
Caption = "Region"
Type = "Region"/>
<Manager
Caption = "Chief
of department"
Type = "String(50)"/>
<Accountant
Caption = "Accountant"
Type = "String(50)"/>
<Staff
Caption = "Staff"
Type = "Staff[]"/>
<Equipment
Caption = "Equipment"
Type = "Equipment[]"/>
<Regions
Caption = "Region"
Type = "Region[]"/>
</Departament>
<Doctor
Caption = "Doctor"
Inherit = "Subject">
<Departament
Caption = "Departament"
Type = "Departament"/>
<StartWork
Caption = "StartWork"
Type = "Date"/>
<EndWork
Caption = "EndWork"
Type = "Date"/>
<Reception
Caption = "Reception"
Type = "Integer"/>
<Trade
Caption = "Trade"
Type = "Integer"/>
<Rank
Caption = "Scientific
rank"
Type = "String(50)"/>
<Job
Caption = "Job"
Type = "String(50)"/>
<Sex
Caption = "Gender"
Type = "Integer"/>
</Doctor>
<Patient
Caption = "Patient"
Inherit = "Subject">
<Doctor
Caption = "Doctor"
Type = "Doctor"/>
<StartDate
Caption = "StartDate"
Type = "Date"/>
<Sex
Caption = "Gender"
Type = "Integer"/>
<CardNo
Caption = "Registration
number"
Type = "String(50)"/>
<History
Caption = "History"
Type = "MedicalRecord[]"/>
<Looking
Caption = "Looking"
Type = "Looking[]"/>
<Lists
Caption = "Lists"
Type = "List[]"/>
</Patient>
<List
Caption = "List">
<ID
Caption = "Patient"
Identity = "Yes"
Type = "Patient"/>
<StartDate
Caption = "StartDate"
Identity = "Yes"
Type = "Date"/>
<Doctor
Caption = "Doctor"
Type = "Doctor"/>
<Diagnosis
Caption = "Diagnosis"
Type = "Diagnosis"/>
<EndDate
Caption = "EndDate"
Type = "Date"/>
</List>
<MedicalRecord
Caption = "The
medical record">
<ID
Identity = "Yes"
Type = "Float"/>
<recordDate
Type = "Date"/>
<endDate
Type = "Date"/>
<recordMonth
Type = "Integer"/>
<endMonth
Type = "Integer"/>
<Role
Caption = "Role"
Type = "Integer"/>
<Doctor
Caption = "Doctor"
Type = "Doctor"/>
<Patient
Caption = "Patient"
Type = "Patient"/>
<Visit
Caption = "Visit"
Type = "Visit"/>
<Diagnosis
Caption = "Diagnosis"
Type = "Diagnosis"/>
<Medical
Caption = "Medical"
Type = "Medical"/>
<WorkTime
Caption = "WorkTime"
Type = "Integer"/>
<WorkCount
Caption = "WorkCount"
Type = "Integer"/>
<Curr
Caption = "Cost"
Type = "Float"/>
<Tooth
Caption = "Tooth"
Type = "String(20)"/>
<SurFace
Caption = "SurFace"
Type = "Integer"/>
<Comment
Caption = "Comment"
Type = "Memo"/>
</MedicalRecord>
<Staff
Caption = "Staff">
<ID
Identity = "Yes"
Type = "Departament"/>
<ActualYear
Identity = "Yes"
Type = "Integer"/>
<Stomatologist1
Type = "Float"/>
<Stomatologist2
Type = "Float"/>
<Stomatologist3
Type = "Integer"/>
<Dentist1
Type = "Float"/>
<Dentist2
Type = "Float"/>
<Dentist3
Type = "Integer"/>
<Nurse1
Type = "Float"/>
<Nurse2
Type = "Float"/>
<Nurse3
Type = "Integer"/>
<Dental1
Type = "Float"/>
<Dental2
Type = "Float"/>
<Dental3
Type = "Integer"/>
<Worker1
Type = "Float"/>
<Worker2
Type = "Float"/>
<Worker3
Type = "Integer"/>
</Staff>
<Equipment
Caption = "Equipment">
<ID
Identity = "Yes"
Type = "Departament"/>
<ActualYear
Identity = "Yes"
Type = "Integer"/>
<Stationary
Type = "Integer"/>
<Mobile
Type = "Integer"/>
<Laboratory
Type = "Integer"/>
<WorkSeat
Type = "Integer"/>
<RontgenOFDent
Type = "Integer"/>
<RontgenOFPanoramic
Type = "Integer"/>
</Equipment>
<Looking
Caption = "Looking">
<ID
Identity = "Yes"
Type = "Patient"/>
<ActualYear
Identity = "Yes"
Type = "Integer"/>
</Looking>
</Entities>
</XML>
|