public TaggedPatientAssociateArray(string tag, PatientAssociate mdo) { this.tag = tag; if (mdo == null) { this.count = 0; return; } this.pas = new PatientAssociateTO[1]; this.pas[0] = new PatientAssociateTO(mdo); this.count = 1; }
private void setProps(PatientAssociate[] mdo) { if (mdo == null) { return; } pas = new PatientAssociateTO[mdo.Length]; for (int i = 0; i < mdo.Length; i++) { pas[i] = new PatientAssociateTO(mdo[i]); } count = mdo.Length; }
public TaggedPatientAssociateArray(string tag, PatientAssociate[] mdos) { this.tag = tag; if (mdos == null) { this.count = 0; return; } this.pas = new PatientAssociateTO[mdos.Length]; for (int i = 0; i < mdos.Length; i++) { this.pas[i] = new PatientAssociateTO(mdos[i]); } this.count = pas.Length; }
public PatientAssociateTO(PatientAssociate mdo) { this.name = mdo.Name.getLastNameFirst(); if (mdo.HomeAddress != null) { this.homeAddress = new AddressTO(mdo.HomeAddress); } if (mdo.HomePhone != null) { this.homePhone = new PhoneNumTO(mdo.HomePhone); } if (mdo.CellPhone != null) { this.cellPhone = new PhoneNumTO(mdo.CellPhone); } this.association = mdo.Association; this.relationshipToPatient = mdo.RelationshipToPatient; this.facilityName = mdo.FacilityName; }
public PatientAssociateArray(PatientAssociate[] mdo) { setProps(mdo); }