예제 #1
0
        public string PerformActionPOST(string patientID, string medicationOrderName)
        {
            var result = "";

            var medicationOrder = new MedicationOrder(url.Trim());

            // var allergyIntolerance = new AllergyIntolerance("http://fhirtest.uhn.ca/baseDstu2/");
            //var patientID = 6140; //Patient ID for FHIR Server

            // var medications = new List<string>() { "hydrocodone", "aspirin" }; //medications the patient is taking
            //var response = allergyIntolerance.GetListOfMedicationAllergies(patientID, medications).ToList();
            result = medicationOrder.PostMedicationOrder(patientID, medicationOrderName);


            return(result);
        }
예제 #2
0
        public string PerformActionSEARCH(string patientID)
        {
            var result          = "";
            var medicationOrder = new MedicationOrder(url.Trim());
            // var allergyIntolerance = new AllergyIntolerance("http://fhirtest.uhn.ca/baseDstu2/");
            //var patientID = 6140; //Patient ID for FHIR Server

            // var medications = new List<string>() { "hydrocodone", "aspirin" }; //medications the patient is taking
            //var response = allergyIntolerance.GetListOfMedicationAllergies(patientID, medications).ToList();
            var response = medicationOrder.SearchPatientsMedication(patientID);

            //var medicationCodes = response.Keys;
            //foreach (string m in medicationCodes)
            //{
            //    result += m;
            //}
            result = response;
            return(result);
        }