C# 클래스 EhrgoHealth.Web.AllergyIntolerance

파일 보기 프로젝트 열기: EhrgoHealth/CS6440

공개 메소드들

메소드 설명
AllergyIntolerance ( string fhirServer, ApplicationUserManager userManager, IAuthenticationManager authManager ) : EhrgoHealth.Web.Models
GetListOfMedicationAllergies ( int patientID, IList medications ) : IEnumerable

The controller is expected to receive two data structures from an EHR.

GetPatientsKnownAllergies ( int patientID ) : Boolean>.IDictionary

Returns a dictionary of patient's allergies (ICD-10-CM Diagnosis Codes) from the FHIR server

IsAllergicToMedications ( int patientID, IList medications ) : Task

This method can take use the data given to it from the EHR, as is, and determine if there is a problem. However, the downside is this method only returns a Boolean. If you want a list of the medications the patient is allergic to, then call GetListOfMedicationAllergies() instead.

비공개 메소드들

메소드 설명
DetermineListOfAllergicMedications ( IList medications, bool>.IDictionary lookupPatientsKnownAllergies ) : IEnumerable

Private helper method.

GetAllergyIntoleranceIDs ( string patientID ) : IList

Returns a dictionary of patient's allergies (ICD-10-CM Diagnosis Codes) from the FHIR server

IsAllergic ( IList medications, Boolean>.IDictionary lookupPatientsKnownAllergies ) : System.Boolean

I'm the least happy with this method, because I know I can refactor this to do more to also give me a list or dictionary of my results.

메소드 상세

AllergyIntolerance() 공개 메소드

public AllergyIntolerance ( string fhirServer, ApplicationUserManager userManager, IAuthenticationManager authManager ) : EhrgoHealth.Web.Models
fhirServer string
userManager ApplicationUserManager
authManager IAuthenticationManager
리턴 EhrgoHealth.Web.Models

GetListOfMedicationAllergies() 공개 메소드

The controller is expected to receive two data structures from an EHR.
public GetListOfMedicationAllergies ( int patientID, IList medications ) : IEnumerable
patientID int The patient's ID from FHIR
medications IList The List of medications they currently know their patient is taking
리턴 IEnumerable

GetPatientsKnownAllergies() 공개 메소드

Returns a dictionary of patient's allergies (ICD-10-CM Diagnosis Codes) from the FHIR server
public GetPatientsKnownAllergies ( int patientID ) : Boolean>.IDictionary
patientID int Unique ID of patient for FHIR server
리턴 Boolean>.IDictionary

IsAllergicToMedications() 공개 메소드

This method can take use the data given to it from the EHR, as is, and determine if there is a problem. However, the downside is this method only returns a Boolean. If you want a list of the medications the patient is allergic to, then call GetListOfMedicationAllergies() instead.
public IsAllergicToMedications ( int patientID, IList medications ) : Task
patientID int The patient's ID from FHIR
medications IList The List of medications they currently know their patient is taking
리턴 Task