Teine-meeskond: Difference between revisions

From ICO wiki
Jump to navigationJump to search
Rrattas (talk | contribs)
Rrattas (talk | contribs)
No edit summary
Line 15: Line 15:


== XML fail==
== XML fail==
 
<source lang="xml">
  <?xml version="1.0" encoding="utf-8" ?>
<?xml version="1.0" encoding="utf-8" ?>
  <!-- Simple XML datafile for holding patients data -->
<!-- Simple XML datafile for holding patients data -->
  <HealthMonitoring>
<HealthMonitoring>
<Patient id="1" hasInsurance="yes">
<Patient id="1" hasInsurance="yes">
<FirstName>Mari-Liis</FirstName>
<FirstName>Mari-Liis</FirstName>
Line 25: Line 25:
<MedicalHistory>
<MedicalHistory>
<Complaint id="1" isPrivate="no">
<Complaint id="1" isPrivate="no">
<Symptom>Fever</Symprom>
<Symptom>Fever</Symptom>
<BeginDateTime>2013-05-28T09:00:00</BeginDateTime>
<BeginDateTime>2013-05-28T09:00:00</BeginDateTime>
<EndDateTime/>
<EndDateTime/>
<Descripton>I'm feeling sick and I have 38 degrees fever!</Description>
<Description>I'm feeling sick and I have 38 degrees fever!</Description>
<Treatment>
<Treatment>
          <Medicine id='1' isPrescriptionDrug="no">
          <Medicine id='1' isPrescriptionDrug="no">
            <Name>Aspirin</Name>
            <Name>Aspirin</Name>
              <BeginDate>2013-05-28</BeginDate>
              <BeginDate>2013-05-28</BeginDate>
            <EndDate>2013-05-30</EndDate>
            <EndDate>2013-05-30</EndDate>
            <Notes>Take one tablet three times a day.</Notes>
            <Notes>Take one tablet three times a day.</Notes>
              </Medicine>           
              </Medicine>           
</Treatment>
</Treatment>
</Complaint>
</Complaint>
<Complaint id="2" isPrivate="yes">
<Complaint id="2" isPrivate="yes">
<Symptom>Headache</Symprom>
<Symptom>Headache</Symptom>
<BeginDateTime>2013-05-28T09:00:00</BeginDateTime>
<BeginDateTime>2013-05-28T09:00:00</BeginDateTime>
<EndDateTime>2013-05-30T09:00:00<<EndDateTime>
<EndDateTime>2013-05-30T09:00:00</EndDateTime>
<Descripton>I'm having random headaches</Description>
<Description>I'm having random headaches</Description>
<Treatment>
<Treatment>
          <Medicine id='2' isPrescriptionDrug="yes">
          <Medicine id='2' isPrescriptionDrug="yes">
            <Name>Xanax</Name>
            <Name>Xanax</Name>
              <BeginDate>2013-05-28</BeginDate>
              <BeginDate>2013-05-28</BeginDate>
            <EndDate>2013-05-30</EndDate>
            <EndDate>2013-05-30</EndDate>
            <Notes>Take one pill per day and enjoy!</Notes>
            <Notes>Take one pill per day and enjoy!</Notes>
              </Medicine>
              </Medicine>
</Treatment>
</Treatment>
</Complaint>
</Complaint>
Line 60: Line 60:
<MedicalHistory>
<MedicalHistory>
<Complaint id="1" isPrivate="no">
<Complaint id="1" isPrivate="no">
<Symptom>Fever</Symprom>
<Symptom>Can't sleep</Symptom>
<BeginDateTime>2013-05-28T09:00:00</BeginDateTime>
<BeginDateTime>2013-05-28T09:00:00</BeginDateTime>
<EndDateTime/>
<EndDateTime/>
<Descripton>I can't sleep.</Description>
<Description>I can't sleep.</Description>
<Treatment>
<Treatment>
          <Medicine id='3' isPrescriptionDrug="no">
          <Medicine id='3' isPrescriptionDrug="no">
            <Name>Sleeping pills</Name>
            <Name>Sleeping pills</Name>
              <BeginDate>2013-05-28</BeginDate>
              <BeginDate>2013-05-28</BeginDate>
            <EndDate>2013-06-30</EndDate>
            <EndDate>2013-06-30</EndDate>
            <Notes>Take one pill before going to sleep.</Notes>
            <Notes>Take one pill before going to sleep.</Notes>
              </Medicine>
              </Medicine>
</Treatment>
</Treatment>
</Complaint>
</Complaint>
</MedicalHistory>
</MedicalHistory>
</Patient>
</Patient>
  </HealthMonitoring>
</HealthMonitoring>
</source lang="xml">


==XML schema (XSD)==
==XML schema (XSD)==

Revision as of 22:56, 5 May 2013

Võrgurakendused II: hajussüsteemide ehitamine

Kodutöö leht


Rühma liikmed:

  • Nikolai Skorohodov
  • Ragnar Rattas
  • Rynga Bogdanov

XML

Faili kirjeldus

XML fail

<source lang="xml">

<?xml version="1.0" encoding="utf-8" ?>

<HealthMonitoring> <Patient id="1" hasInsurance="yes"> <FirstName>Mari-Liis</FirstName> <LastName>Männik</LastName> <PersonalCode>47101010033</PersonalCode> <MedicalHistory> <Complaint id="1" isPrivate="no"> <Symptom>Fever</Symptom> <BeginDateTime>2013-05-28T09:00:00</BeginDateTime> <EndDateTime/> <Description>I'm feeling sick and I have 38 degrees fever!</Description> <Treatment>

          					<Medicine id='1' isPrescriptionDrug="no">
            						<Name>Aspirin</Name>
             						<BeginDate>2013-05-28</BeginDate>
            						<EndDate>2013-05-30</EndDate>
            						<Notes>Take one tablet three times a day.</Notes>
             						</Medicine>            			

</Treatment> </Complaint> <Complaint id="2" isPrivate="yes"> <Symptom>Headache</Symptom> <BeginDateTime>2013-05-28T09:00:00</BeginDateTime> <EndDateTime>2013-05-30T09:00:00</EndDateTime> <Description>I'm having random headaches</Description> <Treatment>

          					<Medicine id='2' isPrescriptionDrug="yes">
            						<Name>Xanax</Name>
             						<BeginDate>2013-05-28</BeginDate>
            						<EndDate>2013-05-30</EndDate>
            						<Notes>Take one pill per day and enjoy!</Notes>
             					</Medicine>

</Treatment> </Complaint> </MedicalHistory> </Patient> <Patient id="2" hasInsurance="no"> <FirstName>Igor</FirstName> <LastName>Žaikovski</LastName> <PersonalCode>37101010021</PersonalCode> <MedicalHistory> <Complaint id="1" isPrivate="no"> <Symptom>Can't sleep</Symptom> <BeginDateTime>2013-05-28T09:00:00</BeginDateTime> <EndDateTime/> <Description>I can't sleep.</Description> <Treatment>

          					<Medicine id='3' isPrescriptionDrug="no">
            					<Name>Sleeping pills</Name>
             					<BeginDate>2013-05-28</BeginDate>
            					<EndDate>2013-06-30</EndDate>
            					<Notes>Take one pill before going to sleep.</Notes>
             					</Medicine>

</Treatment> </Complaint> </MedicalHistory> </Patient> </HealthMonitoring> </source lang="xml">

XML schema (XSD)

Style Sheet 1

Style Sheet 2

Style Sheet 3