C# Class EhrgoHealth.Web.AllergyIntolerance

Mostrar archivo Open project: EhrgoHealth/CS6440

Public Methods

Method Description
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.

Private Methods

Method Description
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.

Method Details

AllergyIntolerance() public method

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

GetListOfMedicationAllergies() public method

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
return IEnumerable

GetPatientsKnownAllergies() public method

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
return Boolean>.IDictionary

IsAllergicToMedications() public method

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
return Task