private void AddId(INTERNALPATIENTID internalpatientid)
        {
            var existing = INTERNAL_PATIENT_ID.FirstOrDefault(x => x.IDENTIFIER_TYPE == internalpatientid.IDENTIFIER_TYPE);
            if (null != existing)
                INTERNAL_PATIENT_ID.Remove(existing);

            INTERNAL_PATIENT_ID.Add(internalpatientid);
        }
Example #2
0
 public void AssignHtsNumber(string practiceCode, string number)
 {
     if (!HasHtsNumber())
     {
         // assign HTS
         var hts = INTERNALPATIENTID.Create(number, practiceCode);
         PATIENT_IDENTIFICATION.INTERNAL_PATIENT_ID.Add(hts);
     }
 }
 public static PATIENTIDENTIFICATION Create(PATIENTNAME patientName, string dateOfBirth, string dateOfBirthPrecision, string sex, PATIENTADDRESS patientAddress, string phoneNumber, string maritalStatus, INTERNALPATIENTID internalpatientid)
 {
     return new PATIENTIDENTIFICATION(patientName,dateOfBirth,dateOfBirthPrecision,sex,patientAddress,phoneNumber,maritalStatus,internalpatientid);
 }
 private PATIENTIDENTIFICATION(PATIENTNAME patientName, string dateOfBirth, string dateOfBirthPrecision, string sex, PATIENTADDRESS patientAddress, string phoneNumber, string maritalStatus, INTERNALPATIENTID internalpatientid)
 {
     PATIENT_NAME = patientName;
     DATE_OF_BIRTH = dateOfBirth;
     DATE_OF_BIRTH_PRECISION = dateOfBirthPrecision;
     SEX = sex;
     PATIENT_ADDRESS = patientAddress;
     PHONE_NUMBER = phoneNumber;
     MARITAL_STATUS = maritalStatus;
     AddId(internalpatientid);
 }