C# Class EhrgoHealth.WebService.AllergyIntolerance

Afficher le fichier Open project: EhrgoHealth/CS6440

Méthodes publiques

Méthode Description
AllergyIntolerance ( string fhirServer ) : System
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 ) : System.Boolean

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

Méthode 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 méthode

public AllergyIntolerance ( string fhirServer ) : System
fhirServer string
Résultat System

GetListOfMedicationAllergies() public méthode

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
Résultat IEnumerable

GetPatientsKnownAllergies() public méthode

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
Résultat Boolean>.IDictionary

IsAllergicToMedications() public méthode

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 ) : System.Boolean
patientID int The patient's ID from FHIR
medications IList The List of medications they currently know their patient is taking
Résultat System.Boolean