示例#1
0
 public void assignPatientInsuranceInfo(Patient patient, string company, string memberID, string groupID, string expDate)
 {
     patient.insuranceCompanyName = company;
     patient.memberID = memberID;
     patient.groupID = groupID;
     patient.insuranceExpirationDate = expDate;
 }
示例#2
0
 public void assignPatientAddress(Patient patient, string street1, string street2, string city, string zip, string state )
 {
     patient.personStreetAddress1 = street1;
     patient.personStreetAddress2 = street2;
     patient.personCity = city;
     patient.personZip = zip;
     patient.personState = state;
 }
示例#3
0
 public void assignPatientAddress(Patient patient, string address, string address2 ,string city, string state, string zip)
 {
     patient.personAddress = address;
     patient.personAddress2 = address2;
     patient.personCity = city;
     patient.personState = state;
     patient.personZip = zip;
 }
示例#4
0
        public Patient assignPatientID()
        {
            Patient patient = new Patient();
            XmlDocument doc = new XmlDocument();
            doc.Load("C:\\Users\\nanne\\Documents\\GitHub\\HosptialSystem\\HosptialSystem\\PeopleDatabase.xml");
            int personID = doc.SelectNodes("root/person").Count;

            return patient;
        }
示例#5
0
 public Patient assignPatientID()
 {
     Patient patient = new Patient();
     long i = 1;
     foreach (byte b in Guid.NewGuid().ToByteArray())
     {
         i *= ((int)b + 1);
     }
     patient.personID = String.Format("{0:d9}", (DateTime.Now.Ticks / 10) % 1000000000);
     return patient;
 }
示例#6
0
 public void assignPatientPhonenumber(Patient patient, string dataPhoneNumber)
 {
     patient.personPhoneNumber = dataPhoneNumber;
 }
示例#7
0
 public void assignPatientName(Patient patient, string dataFirstName, string dataLastName)
 {
     patient.personFirstName = dataFirstName;
     patient.personLastName = dataLastName;
 }
示例#8
0
 public void assignPatientBirthDate(Patient patient, string dataBirthDate)
 {
     patient.personDateOfBirth = dataBirthDate;
 }
示例#9
0
 public void addNewPatientToDatabase(Patient patient)
 {
     InputOutput toData = new InputOutput();
     toData.writeToXML(patient);
 }
示例#10
0
 public void assignPatientAge(Patient patient, string age)
 {
     patient.personAge = age;
 }
示例#11
0
 public void assignPatientPhonenumber(Patient patient, string dataPhoneNumber)
 {
     patient.personPhoneNumber = dataPhoneNumber;
 }
示例#12
0
 public void assignPatientName(Patient patient, string dataFirstName, string dataLastName)
 {
     patient.personFirstName = dataFirstName;
     patient.personLastName  = dataLastName;
 }
示例#13
0
 public void assignPatientAge(Patient patient, string age)
 {
     patient.personAge = age;
 }