Exemplo n.º 1
0
        private void init(int identifier
                          , string subject, ChroniGenNHibernate.Enumerated.Chroni.CarePlanStatusEnum status, string context, Nullable <DateTime> startDate, Nullable <DateTime> modified, string description, string note, System.Collections.Generic.IList <ChroniGenNHibernate.EN.Chroni.ActivityEN> activity, ChroniGenNHibernate.EN.Chroni.EncounterEN encounter, System.Collections.Generic.IList <ChroniGenNHibernate.EN.Chroni.GoalEN> goal, Nullable <DateTime> endDate, System.Collections.Generic.IList <ChroniGenNHibernate.EN.Chroni.CarePlanCategoryEN> carePlanCategory)
        {
            this.Identifier = identifier;


            this.Subject = subject;

            this.Status = status;

            this.Context = context;

            this.StartDate = startDate;

            this.Modified = modified;

            this.Description = description;

            this.Note = note;

            this.Activity = activity;

            this.Encounter = encounter;

            this.Goal = goal;

            this.EndDate = endDate;

            this.CarePlanCategory = carePlanCategory;
        }
Exemplo n.º 2
0
        public void Modify(int p_CarePlan_OID, string p_subject, ChroniGenNHibernate.Enumerated.Chroni.CarePlanStatusEnum p_status, string p_context, Nullable <DateTime> p_startDate, Nullable <DateTime> p_modified, string p_description, string p_note, Nullable <DateTime> p_endDate)
        {
            CarePlanEN carePlanEN = null;

            //Initialized CarePlanEN
            carePlanEN             = new CarePlanEN();
            carePlanEN.Identifier  = p_CarePlan_OID;
            carePlanEN.Subject     = p_subject;
            carePlanEN.Status      = p_status;
            carePlanEN.Context     = p_context;
            carePlanEN.StartDate   = p_startDate;
            carePlanEN.Modified    = p_modified;
            carePlanEN.Description = p_description;
            carePlanEN.Note        = p_note;
            carePlanEN.EndDate     = p_endDate;
            //Call to CarePlanCAD

            _ICarePlanCAD.Modify(carePlanEN);
        }
Exemplo n.º 3
0
        public int New_(string p_subject, ChroniGenNHibernate.Enumerated.Chroni.CarePlanStatusEnum p_status, string p_context, Nullable <DateTime> p_startDate, Nullable <DateTime> p_modified, string p_description, string p_note, int p_encounter, Nullable <DateTime> p_endDate)
        {
            CarePlanEN carePlanEN = null;
            int        oid;

            //Initialized CarePlanEN
            carePlanEN         = new CarePlanEN();
            carePlanEN.Subject = p_subject;

            carePlanEN.Status = p_status;

            carePlanEN.Context = p_context;

            carePlanEN.StartDate = p_startDate;

            carePlanEN.Modified = p_modified;

            carePlanEN.Description = p_description;

            carePlanEN.Note = p_note;


            if (p_encounter != -1)
            {
                // El argumento p_encounter -> Property encounter es oid = false
                // Lista de oids identifier
                carePlanEN.Encounter            = new ChroniGenNHibernate.EN.Chroni.EncounterEN();
                carePlanEN.Encounter.Identifier = p_encounter;
            }

            carePlanEN.EndDate = p_endDate;

            //Call to CarePlanCAD

            oid = _ICarePlanCAD.New_(carePlanEN);
            return(oid);
        }
Exemplo n.º 4
0
 public CarePlanEN(int identifier, string subject, ChroniGenNHibernate.Enumerated.Chroni.CarePlanStatusEnum status, string context, Nullable <DateTime> startDate, Nullable <DateTime> modified, string description, string note, System.Collections.Generic.IList <ChroniGenNHibernate.EN.Chroni.ActivityEN> activity, ChroniGenNHibernate.EN.Chroni.EncounterEN encounter, System.Collections.Generic.IList <ChroniGenNHibernate.EN.Chroni.GoalEN> goal, Nullable <DateTime> endDate, System.Collections.Generic.IList <ChroniGenNHibernate.EN.Chroni.CarePlanCategoryEN> carePlanCategory
                   )
 {
     this.init(Identifier, subject, status, context, startDate, modified, description, note, activity, encounter, goal, endDate, carePlanCategory);
 }