private void BuildTaddYoungPatient() { PersonName name = new PersonNameBuilder () .WithFirst ( "Tadd" ) .WithLast ( "Young" ) .Build (); PatientProfile profile = new PatientProfileBuilder () .WithBirthDate ( DateTime.Parse ( "5/10/2000" ) ) .WithPatientGender ( MaleGender ) .Build (); TaddYoungPatient = new Patient ( SafeHarborAgency, name, profile ); TaddYoungPatient.UpdateUniqueIdentifier("taddyoung"); TaddYoungPatient.AddPhoneNumber ( new PatientPhone ( HomePatientPhoneType, "555-255-5454" ) ); var patientRace = new PatientRace ( WhiteRace ); TaddYoungPatient.AddPatientRace ( patientRace ); TaddYoungPatient.SetPrimaryRace ( WhiteRace ); TaddYoungPatient.AddAlias ( new PatientAlias ( NicknamePatientAliasType, "Tadd" ) ); TaddYoungPatient.AddPatientDisability ( new PatientDisability ( DeafDisability ) ); Session.SaveOrUpdate ( TaddYoungPatient ); }
private void BuildAlbertSmithPatient() { PersonName name = new PersonNameBuilder () .WithFirst ( "Albert" ) .WithLast ( "Smith" ) .Build (); PatientProfile profile = new PatientProfileBuilder () .WithBirthDate ( DateTime.Parse ( "5/10/1971" ) ) .WithPatientGender ( MaleGender ) .Build (); AlbertSmithPatient = new Patient ( SafeHarborAgency, name, profile ); AlbertSmithPatient.UpdateUniqueIdentifier("albertsmith"); var address = new AddressBuilder () .WithFirstStreetAddress ( "14235 South St" ) .WithCityName ( "Baltimore" ) .WithPostalCode ( new PostalCode ( "21075" ) ) .WithStateProvince ( MarylandStateProvince ) .Build (); PatientAddress albertSmithAddress = new PatientAddressBuilder () .WithPatientAddressType ( HomePatientAddressType ) .WithAddress(address) .Build (); AlbertSmithPatient.AddAddress ( albertSmithAddress ); AlbertSmithPatient.AddPhoneNumber ( new PatientPhone ( HomePatientPhoneType, "555-255-5454" ) ); var patientRace = new PatientRace ( WhiteRace ); AlbertSmithPatient.AddPatientRace ( patientRace ); AlbertSmithPatient.SetPrimaryRace(WhiteRace); AlbertSmithPatient.AddAlias ( new PatientAlias ( NicknamePatientAliasType, "Al-bear" ) ); AlbertSmithPatient.AddPatientDisability ( new PatientDisability ( DeafDisability ) ); Session.SaveOrUpdate ( AlbertSmithPatient ); }