public void SetPriority(int p_oid, ChroniGenNHibernate.Enumerated.Chroni.EncounterPriorityEnum p_prioridad)
        {
            /*PROTECTED REGION ID(ChroniGenNHibernate.CEN.Chroni_Encounter_setPriority) ENABLED START*/

            // Write here your custom code...

            EncounterCAD encounterCAD = new EncounterCAD();
            EncounterCEN encounterCEN = new EncounterCEN(encounterCAD);

            if (p_oid > 0)
            {
                EncounterEN encounter = encounterCEN.ReadOID(p_oid);

                if (encounter != null)
                {
                    if (p_prioridad > 0)
                    {
                        encounter.Priority = p_prioridad;
                        encounterCAD.Modify(encounter);
                    }
                }
            }

            /*PROTECTED REGION END*/
        }
        private void init(int identifier
                          , ChroniGenNHibernate.Enumerated.Chroni.EncounterStatusEnum status, ChroniGenNHibernate.Enumerated.Chroni.EncounterTypeEnum type, ChroniGenNHibernate.Enumerated.Chroni.EncounterPriorityEnum priority, Nullable <DateTime> startDate, Nullable <DateTime> endDate, string reason, string serviceProvider, ChroniGenNHibernate.EN.Chroni.PatientEN patient, System.Collections.Generic.IList <ChroniGenNHibernate.EN.Chroni.PractitionerEN> practitioner, ChroniGenNHibernate.EN.Chroni.ConditionEN condition, System.Collections.Generic.IList <ChroniGenNHibernate.EN.Chroni.CarePlanEN> carePlan, ChroniGenNHibernate.EN.Chroni.SlotEN slot, string note)
        {
            this.Identifier = identifier;


            this.Status = status;

            this.Type = type;

            this.Priority = priority;

            this.StartDate = startDate;

            this.EndDate = endDate;

            this.Reason = reason;

            this.ServiceProvider = serviceProvider;

            this.Patient = patient;

            this.Practitioner = practitioner;

            this.Condition = condition;

            this.CarePlan = carePlan;

            this.Slot = slot;

            this.Note = note;
        }
 public EncounterEN(int identifier, ChroniGenNHibernate.Enumerated.Chroni.EncounterStatusEnum status, ChroniGenNHibernate.Enumerated.Chroni.EncounterTypeEnum type, ChroniGenNHibernate.Enumerated.Chroni.EncounterPriorityEnum priority, Nullable <DateTime> startDate, Nullable <DateTime> endDate, string reason, string serviceProvider, ChroniGenNHibernate.EN.Chroni.PatientEN patient, System.Collections.Generic.IList <ChroniGenNHibernate.EN.Chroni.PractitionerEN> practitioner, ChroniGenNHibernate.EN.Chroni.ConditionEN condition, System.Collections.Generic.IList <ChroniGenNHibernate.EN.Chroni.CarePlanEN> carePlan, ChroniGenNHibernate.EN.Chroni.SlotEN slot, string note
                    )
 {
     this.init(Identifier, status, type, priority, startDate, endDate, reason, serviceProvider, patient, practitioner, condition, carePlan, slot, note);
 }
Esempio n. 4
0
        public int New_(ChroniGenNHibernate.Enumerated.Chroni.EncounterStatusEnum p_status, ChroniGenNHibernate.Enumerated.Chroni.EncounterTypeEnum p_type, ChroniGenNHibernate.Enumerated.Chroni.EncounterPriorityEnum p_priority, Nullable <DateTime> p_startDate, Nullable <DateTime> p_endDate, string p_reason, string p_serviceProvider, int p_patient, System.Collections.Generic.IList <int> p_practitioner, ChroniGenNHibernate.EN.Chroni.ConditionEN p_condition, int p_slot, string p_note)
        {
            EncounterEN encounterEN = null;
            int         oid;

            //Initialized EncounterEN
            encounterEN        = new EncounterEN();
            encounterEN.Status = p_status;

            encounterEN.Type = p_type;

            encounterEN.Priority = p_priority;

            encounterEN.StartDate = p_startDate;

            encounterEN.EndDate = p_endDate;

            encounterEN.Reason = p_reason;

            encounterEN.ServiceProvider = p_serviceProvider;


            if (p_patient != -1)
            {
                // El argumento p_patient -> Property patient es oid = false
                // Lista de oids identifier
                encounterEN.Patient            = new ChroniGenNHibernate.EN.Chroni.PatientEN();
                encounterEN.Patient.Identifier = p_patient;
            }


            encounterEN.Practitioner = new System.Collections.Generic.List <ChroniGenNHibernate.EN.Chroni.PractitionerEN>();
            if (p_practitioner != null)
            {
                foreach (int item in p_practitioner)
                {
                    ChroniGenNHibernate.EN.Chroni.PractitionerEN en = new ChroniGenNHibernate.EN.Chroni.PractitionerEN();
                    en.Identifier = item;
                    encounterEN.Practitioner.Add(en);
                }
            }

            else
            {
                encounterEN.Practitioner = new System.Collections.Generic.List <ChroniGenNHibernate.EN.Chroni.PractitionerEN>();
            }

            encounterEN.Condition = p_condition;


            if (p_slot != -1)
            {
                // El argumento p_slot -> Property slot es oid = false
                // Lista de oids identifier
                encounterEN.Slot            = new ChroniGenNHibernate.EN.Chroni.SlotEN();
                encounterEN.Slot.Identifier = p_slot;
            }

            encounterEN.Note = p_note;

            //Call to EncounterCAD

            oid = _IEncounterCAD.New_(encounterEN);
            return(oid);
        }
Esempio n. 5
0
        public void Modify(int p_Encounter_OID, ChroniGenNHibernate.Enumerated.Chroni.EncounterStatusEnum p_status, ChroniGenNHibernate.Enumerated.Chroni.EncounterTypeEnum p_type, ChroniGenNHibernate.Enumerated.Chroni.EncounterPriorityEnum p_priority, Nullable <DateTime> p_startDate, Nullable <DateTime> p_endDate, string p_reason, string p_serviceProvider, string p_note)
        {
            EncounterEN encounterEN = null;

            //Initialized EncounterEN
            encounterEN                 = new EncounterEN();
            encounterEN.Identifier      = p_Encounter_OID;
            encounterEN.Status          = p_status;
            encounterEN.Type            = p_type;
            encounterEN.Priority        = p_priority;
            encounterEN.StartDate       = p_startDate;
            encounterEN.EndDate         = p_endDate;
            encounterEN.Reason          = p_reason;
            encounterEN.ServiceProvider = p_serviceProvider;
            encounterEN.Note            = p_note;
            //Call to EncounterCAD

            _IEncounterCAD.Modify(encounterEN);
        }