public OperationAuditData(string operation, CompositeIdentifierDetail mrn, PersonNameDetail name, string accessionNumber, string procedureName) { this.Operation = operation; this.Patient = new PatientAuditData(mrn, name); this.Order = new OrderAuditData(accessionNumber); this.Procedure = new ProcedureAuditData(procedureName); }
public PatientAuditData(CompositeIdentifierDetail mrn, PersonNameDetail name) { Mrn = string.Format("{0} {1}", mrn.AssigningAuthority.Code, mrn.Id); Name = string.IsNullOrEmpty(name.MiddleName) ? string.Format("{0}, {1}", name.FamilyName, name.GivenName) : string.Format("{0}, {1} {2}", name.FamilyName, name.GivenName, name.MiddleName); }
public WorklistItemSummaryBase( EntityRef procedureStepRef, EntityRef procedureRef, EntityRef orderRef, EntityRef patientRef, EntityRef profileRef, CompositeIdentifierDetail mrn, PersonNameDetail name, string accessionNumber, EnumValueInfo orderPriority, EnumValueInfo patientClass, string diagnosticServiceName, string procedureName, bool procedurePortable, EnumValueInfo procedureLaterality, string procedureStepName, DateTime?time) { this.ProcedureStepRef = procedureStepRef; this.ProcedureRef = procedureRef; this.OrderRef = orderRef; this.PatientRef = patientRef; this.PatientProfileRef = profileRef; this.Mrn = mrn; this.PatientName = name; this.AccessionNumber = accessionNumber; this.OrderPriority = orderPriority; this.PatientClass = patientClass; this.DiagnosticServiceName = diagnosticServiceName; this.ProcedureName = procedureName; this.ProcedurePortable = procedurePortable; this.ProcedureLaterality = procedureLaterality; this.ProcedureStepName = procedureStepName; this.Time = time; }
public ExternalPractitionerDetail( EntityRef practitionerRef, PersonNameDetail personNameDetail, string licenseNumber, string billingNumber, bool isVerified, DateTime?lastVerifiedTime, DateTime?lastEditedTime, List <ExternalPractitionerContactPointDetail> contactPoints, Dictionary <string, string> extendedProperties, ExternalPractitionerSummary mergeDestination, bool isMerged, bool deactivated) { this.PractitionerRef = practitionerRef; this.Name = personNameDetail; this.LicenseNumber = licenseNumber; this.BillingNumber = billingNumber; this.IsVerified = isVerified; this.LastVerifiedTime = lastVerifiedTime; this.LastEditedTime = lastEditedTime; this.ContactPoints = contactPoints; this.ExtendedProperties = extendedProperties; this.MergeDestination = mergeDestination; this.IsMerged = isMerged; this.Deactivated = deactivated; }
public void UpdatePersonName(PersonNameDetail detail, PersonName personName) { personName.FamilyName = TrimDetail(detail.FamilyName); personName.GivenName = TrimDetail(detail.GivenName); personName.MiddleName = TrimDetail(detail.MiddleName); personName.Prefix = TrimDetail(detail.Prefix); personName.Suffix = TrimDetail(detail.Suffix); personName.Degree = TrimDetail(detail.Degree); }
public PatientBiographyDocument(PatientProfileSummary patientProfile, IDesktopWindow window) : base(patientProfile.PatientRef, window) { Platform.CheckForNullReference(patientProfile.PatientRef, "PatientRef"); Platform.CheckForNullReference(patientProfile.PatientProfileRef, "PatientProfileRef"); _patientRef = patientProfile.PatientRef; _profileRef = patientProfile.PatientProfileRef; _patientName = patientProfile.Name; _mrn = patientProfile.Mrn; }
/// <summary> /// Formats the specified person name according to the specified format string. /// </summary> /// <remarks> /// Valid format specifiers are as follows: /// %F - full family name /// %f - family name initial /// %G - full given name /// %g - given name initial /// %M - full middle name /// %m - middle initial /// </remarks> /// <param name="pn"></param> /// <param name="format"></param> /// <returns></returns> public static string Format(PersonNameDetail pn, string format) { // G g F f M m string result = format; result = result.Replace("%G", pn.GivenName == null ? "" : pn.GivenName); result = result.Replace("%g", pn.GivenName == null || pn.GivenName.Length == 0 ? "" : pn.GivenName.Substring(0, 1)); result = result.Replace("%F", pn.FamilyName == null ? "" : pn.FamilyName); result = result.Replace("%f", pn.FamilyName == null || pn.FamilyName.Length == 0 ? "" : pn.FamilyName.Substring(0, 1)); result = result.Replace("%M", pn.MiddleName == null ? "" : pn.MiddleName); result = result.Replace("%m", pn.MiddleName == null || pn.MiddleName.Length == 0 ? "" : pn.MiddleName.Substring(0, 1)); return result.Trim(); }
public PersonNameDetail CreatePersonNameDetail(PersonName personName) { if (personName == null) return new PersonNameDetail(); PersonNameDetail detail = new PersonNameDetail(); detail.FamilyName = personName.FamilyName; detail.GivenName = personName.GivenName; detail.MiddleName = personName.MiddleName; detail.Prefix = personName.Prefix; detail.Suffix = personName.Suffix; detail.Degree = personName.Degree; return detail; }
public PatientBiographyDocument(WorklistItemSummaryBase worklistItem, IDesktopWindow window) : base(worklistItem.PatientRef, window) { Platform.CheckForNullReference(worklistItem.PatientRef, "PatientRef"); Platform.CheckForNullReference(worklistItem.PatientProfileRef, "PatientProfileRef"); // the worklist item may not have an OrderRef (may represent just a patient) _patientRef = worklistItem.PatientRef; _profileRef = worklistItem.PatientProfileRef; _patientName = worklistItem.PatientName; _mrn = worklistItem.Mrn; _orderRef = worklistItem.OrderRef; }
public PatientAllergyDetail(EnumValueInfo allergenType, string allergenDescription, EnumValueInfo severity, string reaction, EnumValueInfo sensitivityType, DateTime?onsetTime, DateTime?reportedTime, PersonNameDetail reporterName, EnumValueInfo reporterRelationshipType) { this.AllergenType = allergenType; this.AllergenDescription = allergenDescription; this.Severity = severity; this.Reaction = reaction; this.SensitivityType = sensitivityType; this.OnsetTime = onsetTime; this.ReportedTime = reportedTime; this.ReporterName = reporterName; this.ReporterRelationshipType = reporterRelationshipType; }
public PatientAllergyDetail(EnumValueInfo allergenType, string allergenDescription, EnumValueInfo severity, string reaction, EnumValueInfo sensitivityType, DateTime? onsetTime, DateTime? reportedTime, PersonNameDetail reporterName, EnumValueInfo reporterRelationshipType) { this.AllergenType = allergenType; this.AllergenDescription = allergenDescription; this.Severity = severity; this.Reaction = reaction; this.SensitivityType = sensitivityType; this.OnsetTime = onsetTime; this.ReportedTime = reportedTime; this.ReporterName = reporterName; this.ReporterRelationshipType = reporterRelationshipType; }
public ExternalPractitionerSummary( EntityRef pracRef, PersonNameDetail personNameDetail, string licenseNumber, string billingNumber, bool isVerified, DateTime?lastVerifiedTime, DateTime?lastEditedTime, bool isMerged, bool deactivated) { this.PractitionerRef = pracRef; this.Name = personNameDetail; this.LicenseNumber = licenseNumber; this.BillingNumber = billingNumber; this.IsVerified = isVerified; this.LastVerifiedTime = lastVerifiedTime; this.LastEditedTime = lastEditedTime; this.IsMerged = isMerged; this.Deactivated = deactivated; }
public StaffDetail(EntityRef staffRef, string staffId, EnumValueInfo staffType, PersonNameDetail personNameDetail, EnumValueInfo sex, string title, string licenseNumber, string billingNumber, List <TelephoneDetail> telephoneNumbers, List <AddressDetail> addresses, List <EmailAddressDetail> emailAddresses, List <StaffGroupSummary> groups, Dictionary <string, string> extendedProperties, bool deactivated, string userName) { this.StaffRef = staffRef; this.StaffId = staffId; this.StaffType = staffType; this.Name = personNameDetail; this.Sex = sex; this.Title = title; this.LicenseNumber = licenseNumber; this.BillingNumber = billingNumber; this.TelephoneNumbers = telephoneNumbers; this.Addresses = addresses; this.EmailAddresses = emailAddresses; this.Groups = groups; this.ExtendedProperties = extendedProperties; this.Deactivated = deactivated; this.UserName = userName; }
public StaffDetail(EntityRef staffRef, string staffId, EnumValueInfo staffType, PersonNameDetail personNameDetail, EnumValueInfo sex, string title, string licenseNumber, string billingNumber, List<TelephoneDetail> telephoneNumbers, List<AddressDetail> addresses, List<EmailAddressDetail> emailAddresses, List<StaffGroupSummary> groups, Dictionary<string, string> extendedProperties, bool deactivated, string userName) { this.StaffRef = staffRef; this.StaffId = staffId; this.StaffType = staffType; this.Name = personNameDetail; this.Sex = sex; this.Title = title; this.LicenseNumber = licenseNumber; this.BillingNumber = billingNumber; this.TelephoneNumbers = telephoneNumbers; this.Addresses = addresses; this.EmailAddresses = emailAddresses; this.Groups = groups; this.ExtendedProperties = extendedProperties; this.Deactivated = deactivated; this.UserName = userName; }
public OperationAuditData(string operation, CompositeIdentifierDetail mrn, PersonNameDetail name) { this.Operation = operation; this.Patient = new PatientAuditData(mrn, name); }
/// <summary> /// Formats the person name according to the default person name format as specified in <see cref="FormatSettings"/> /// </summary> /// <param name="pn"></param> /// <returns></returns> public static string Format(PersonNameDetail pn) { return Format(pn, FormatSettings.Default.PersonNameDefaultFormat); }
public PreviewOperationAuditData(string folderSystem, CompositeIdentifierDetail mrn, PersonNameDetail name, string accessionNumber) : base(AuditHelper.Operations.FolderItemPreview, mrn, name, accessionNumber) { this.FolderSystem = folderSystem; }
public OpenWorkspaceOperationAuditData(string workspace, CompositeIdentifierDetail mrn, PersonNameDetail name) : base(AuditHelper.Operations.DocumentWorkspaceOpen, mrn, name) { this.Workspace = workspace; }
public StaffSummary(EntityRef staffRef, string staffId, EnumValueInfo staffType, PersonNameDetail personNameDetail, bool deactivated) { this.StaffRef = staffRef; this.StaffId = staffId; this.StaffType = staffType; this.Name = personNameDetail; this.Deactivated = deactivated; }