public bool AddFingerPrint(FingerPrintMinutias patientFingerprintMinutia, string deviceName, int originalDpi, int originalHeight, int originalWidth) { bool result = false; try { patientFingerprintMinutia.DeviceName = deviceName; patientFingerprintMinutia.OriginalDpi = originalDpi; patientFingerprintMinutia.OriginalHeight = originalHeight; patientFingerprintMinutia.OriginalWidth = originalWidth; FHIRUtilities.LateralitySnoMedCode lateralitySnoMedCode = patientFingerprintMinutia.LateralitySnoMedCode; FHIRUtilities.CaptureSiteSnoMedCode captureSiteSnoMedCode = patientFingerprintMinutia.CaptureSiteSnoMedCode; if (lateralitySnoMedCode == FHIRUtilities.LateralitySnoMedCode.Left || lateralitySnoMedCode == FHIRUtilities.LateralitySnoMedCode.Right) { switch (captureSiteSnoMedCode) { case FHIRUtilities.CaptureSiteSnoMedCode.IndexFinger: case FHIRUtilities.CaptureSiteSnoMedCode.MiddleFinger: case FHIRUtilities.CaptureSiteSnoMedCode.RingFinger: case FHIRUtilities.CaptureSiteSnoMedCode.LittleFinger: case FHIRUtilities.CaptureSiteSnoMedCode.Thumb: { result = true; _fingerPrintMinutiasList.Add(patientFingerprintMinutia); break; } } } } catch (Exception ex) { _exception = ex; } return(result); }
public FingerPrintMinutias(string sessionID, Template template, FHIRUtilities.LateralitySnoMedCode laterality, FHIRUtilities.CaptureSiteSnoMedCode captureSiteSnoMedCode) { SourceAFIS.Templates.NoID noID = new SourceAFIS.Templates.NoID(); noID.SessionID = sessionID; LateralitySnoMedCode = laterality; CaptureSiteSnoMedCode = captureSiteSnoMedCode; Minutiae = FingerprintMinutiaConvertor.ConvertTemplate(template); }
private void ResetVariables() { alertFunction = ""; _captureSite = FHIRUtilities.CaptureSiteSnoMedCode.LittleFinger; _laterality = FHIRUtilities.LateralitySnoMedCode.Left; _patientFHIRProfile = new PatientFHIRProfile(organizationName, "New"); _patientFHIRProfile.FHIRAddress = null; _patientFHIRProfile.FingerPrintMinutiasList = new List <FingerPrintMinutias>(); TriggerResetSession("PatientBridge::ResetVariables"); }
private CodeableConcept GetBodySite(FHIRUtilities.CaptureSiteSnoMedCode captureSite, FHIRUtilities.LateralitySnoMedCode laterality) { int captureSiteCode = (int)captureSite; int lateralityCode = (int)laterality; CodeableConcept bodyCaptureSite = new CodeableConcept("SNOMED", captureSiteCode.ToString(), FHIRUtilities.CaptureSiteToString(captureSite)); Extension extLaterality = new Extension(lateralityCode.ToString(), new FhirString(FHIRUtilities.LateralityToString(laterality))); bodyCaptureSite.AddExtension("Laterality", extLaterality); return(bodyCaptureSite); }
// C# -> Javascript function is NoIDBridge.postLateralityCaptureSite ( <params> ) public bool postLateralityCaptureSite(string laterality, string captureSite) { try { _captureSite = FHIRUtilities.StringToCaptureSite(captureSite); _laterality = FHIRUtilities.StringToLaterality(laterality); errorDescription = ""; } catch (Exception ex) { errorDescription = ex.Message; return(false); } return(true); }
public void Dispose() { _hasValidLeftFingerprint = false; _hasValidRightFingerprint = false; _captureSite = FHIRUtilities.CaptureSiteSnoMedCode.IndexFinger; _laterality = FHIRUtilities.LateralitySnoMedCode.Left; _exceptionMissingReason = ""; _secretAnswer1 = ""; _secretAnswer2 = ""; _existingDOBMatch = ""; _cannotCaptureLeftFingerprint = false; _cannotCaptureRightFingerprint = false; base.alertFunction = ""; base.currentPage = ""; base.errorDescription = ""; base.showExceptionModal = ""; _patientFHIRProfile.Dispose(); }
private string FingerTipSnoMedCTCode(FHIRUtilities.CaptureSiteSnoMedCode fingerTip) { return(fingerTip.ToString()); }