Ejemplo n.º 1
0
 private void initCollections()
 {
     ContinuityOfCareDocuments = new TaggedTextArray();
     Patient          = new PatientTO();
     Meds             = new TaggedMedicationArrays();
     Allergies        = new TaggedAllergyArrays();
     Appointments     = new TaggedAppointmentArrays();
     Notes            = new TaggedNoteArrays();
     ChemHemReports   = new TaggedChemHemRptArrays();
     MicroReports     = new TaggedMicrobiologyRptArrays();
     Problems         = new TaggedProblemArrays();
     RadiologyReports = new TaggedRadiologyReportArrays();
     SurgeryReports   = new TaggedSurgeryReportArrays();
     Vitals           = new TaggedVitalSignArrays();
 }
Ejemplo n.º 2
0
 private void initCollections()
 {
     //CCR = new ContinuityOfCareRecord() { Body = new ContinuityOfCareRecordBody() };
     //CCR.Body.Immunizations = new List<StructuredProductType>();
     FaultArray   = new TaggedFaultArray();
     Patient      = new TaggedPatientArrays();
     Meds         = new TaggedMedicationArrays();
     Allergies    = new TaggedAllergyArrays();
     Appointments = new TaggedAppointmentArrays();
     Notes        = new TaggedNoteArrays();
     //ChemHemReports = new TaggedChemHemRptArrays();
     //MicroReports = new TaggedMicrobiologyRptArrays();
     Problems = new TaggedProblemArrays();
     //RadiologyReports = new TaggedRadiologyReportArrays();
     SurgeryReports = new TaggedSurgeryReportArrays();
     Vitals         = new TaggedVitalSignArrays();
     Immunizations  = new TaggedImmunizationArrays();
     ImagingExams   = new TaggedImagingExamArrays();
     EKGs           = new TaggedClinicalProcedureArrays();
 }
Ejemplo n.º 3
0
        public TaggedMedicationArrays getAllMeds()
        {
            TaggedMedicationArrays result = new TaggedMedicationArrays();

            if (!mySession.ConnectionSet.IsAuthorized)
            {
                result.fault = new FaultTO("Connections not ready for operation", "Need to login?");
            }
            if (result.fault != null)
            {
                return result;
            }

            try
            {
                IndexedHashtable t = Medication.getAllMeds(mySession.ConnectionSet);
                result = new TaggedMedicationArrays(t);
            }
            catch (Exception e)
            {
                result.fault = new FaultTO(e);
            }
            return result;
        }
Ejemplo n.º 4
0
 private void initCollections()
 {
     ContinuityOfCareDocuments = new TaggedTextArray();
     Patient = new PatientTO();
     Meds = new TaggedMedicationArrays();
     Allergies = new TaggedAllergyArrays();
     Appointments = new TaggedAppointmentArrays();
     Notes = new TaggedNoteArrays();
     ChemHemReports = new TaggedChemHemRptArrays();
     MicroReports = new TaggedMicrobiologyRptArrays();
     Problems = new TaggedProblemArrays();
     RadiologyReports = new TaggedRadiologyReportArrays();
     SurgeryReports = new TaggedSurgeryReportArrays();
     Vitals = new TaggedVitalSignArrays();
 }
Ejemplo n.º 5
0
        public TaggedMedicationArrays getPrescriptionsHL7(string pwd, string sitecode, string mpiPid)
        {
            TaggedMedicationArrays result = new TaggedMedicationArrays();

            if (String.IsNullOrEmpty(pwd))
            {
                result.fault = new FaultTO("Missing pwd");
            }
            else if (String.IsNullOrEmpty(sitecode))
            {
                result.fault = new FaultTO("Missing site ID");
            }
            else if (String.IsNullOrEmpty(mpiPid))
            {
                result.fault = new FaultTO("Missing patient ID");
            }

            if (result.fault != null)
            {
                return result;
            }

            try
            {
                Site hl7Site = mySession.SiteTable.getSite(sitecode);
                DataSource hl7Src = null;
                foreach (DataSource src in hl7Site.Sources)
                {
                    if (String.Equals(src.Protocol, "HL7", StringComparison.CurrentCultureIgnoreCase))
                    {
                        hl7Src = src;
                        break;
                    }
                }
                if (hl7Src == null)
                {
                    throw new gov.va.medora.mdo.exceptions.MdoException("No HL7 data source in site table for that site ID");
                }
                HL7Connection cxn = new HL7Connection(hl7Src);
                cxn.connect();
                cxn.Pid = mpiPid;
                result = new TaggedMedicationArrays(new MedsApi().getAllMeds(new ConnectionSet(cxn)));
            }
            catch (Exception exc)
            {
                result.fault = new FaultTO(exc);
            }

            return result;
        }