Example #1
0
        public void ListsAreNotNull()
        {
            var feeder = new FeederAudit();

            Assert.IsNotNull(feeder.OriginatingSystemItemIds);
            Assert.IsNotNull(feeder.FeederSystemIds);
        }
Example #2
0
        public Action(DvText name, string archetypeNodeId, UidBasedId uid,
                      Link[] links, Archetyped archetypeDetails, FeederAudit feederAudit,
                      CodePhrase language, CodePhrase encoding, PartyProxy subject, PartyProxy proider,
                      Participation[] otherParticipations, ObjectRef workflowId, ItemStructure protocol,
                      ObjectRef guidelineId, DvDateTime time, ItemStructure description,
                      IsmTransition ismTransition, InstructionDetails instructionDetails)
            : base(name, archetypeNodeId, uid, links, archetypeDetails, feederAudit, language,
                   encoding, subject, proider, otherParticipations, workflowId, protocol, guidelineId)
        {
            Check.Require(time != null, "time must not be null");
            Check.Require(description != null, "description must not be null");
            Check.Require(ismTransition != null, "ismTransition must not be null");

            this.time        = time;
            this.description = description;
            if (this.description != null)
            {
                this.description.Parent = this;
            }
            this.ismTransition = ismTransition;
            if (this.ismTransition != null)
            {
                this.ismTransition.Parent = this;
            }
            this.instructionDetails = instructionDetails;
            if (this.instructionDetails != null)
            {
                this.instructionDetails.Parent = this;
            }

            SetAttributeDictionary();
            CheckInvariants();
        }
Example #3
0
        public Composition(DvText name, string archetypeNodeId, Support.Identification.UidBasedId uid,
                           Link[] links, Archetyped archetypeDetails, FeederAudit feederAudit,
                           CodePhrase language, CodePhrase territory, DvCodedText category, EventContext context,
                           Content.ContentItem[] content, PartyProxy composer) :
            base(name, archetypeNodeId, uid, links, archetypeDetails, feederAudit)
        {
            Check.Require(language != null, "language must not be null");
            Check.Require(territory != null, "territory must not be null");
            Check.Require(category != null, "category must not be null");
            Check.Require(composer != null, "composer must not be null");


            this.language  = language;
            this.territory = territory;
            this.category  = category;
            this.context   = context;
            if (this.context != null)
            {
                this.context.Parent = this;
            }
            if (content != null)
            {
                this.content = RmFactory.LocatableList <ContentItem>(this, content);
            }

            this.composer = composer;

            SetAttributeDictionary();
            this.CheckInvariants();
        }
Example #4
0
 public PointEvent(DvText name, string archetypeNodeId, Support.Identification.UidBasedId uid,
                   Link[] links, Archetyped archetypeDetails, FeederAudit feederAudit,
                   DvDateTime time, T data,
                   ItemStructure.ItemStructure state)
     : base(name, archetypeNodeId, uid, links, archetypeDetails, feederAudit, time, data, state)
 {
     SetAttributeDictionary();
     CheckInvariants();
 }
Example #5
0
        public Element(DvText name, string archetypeNodeId, Support.Identification.UidBasedId uid,
                       Link[] links, Archetyped archetypeDetails, FeederAudit feederAudit,
                       DataValue value, DvCodedText nullFlavour)
            : base(name, archetypeNodeId, uid, links, archetypeDetails, feederAudit)
        {
            this.value       = value;
            this.nullFlavour = nullFlavour;

            SetAttributeDictionary();
            CheckInvariants();
        }
Example #6
0
        public ItemTable(DvText name, string archetypeNodeId, Support.Identification.UidBasedId uid,
                         Link[] links, Archetyped archetypeDetails, FeederAudit feederAudit, Cluster[] rows)
            : base(name, archetypeNodeId, uid, links, archetypeDetails, feederAudit)
        {
            if (rows != null)
            {
                this.rows = RmFactory.LocatableList <Cluster>(this, rows);
            }

            SetAttributeDictionary();
            CheckInvariants();
        }
Example #7
0
        public Section(DvText name, string archetypeNodeId, Support.Identification.UidBasedId uid,
                       Link[] links, Archetyped archetypeDetails, FeederAudit feederAudit, ContentItem[] items)
            : base(name, archetypeNodeId, uid, links, archetypeDetails, feederAudit)
        {
            if (items != null)
            {
                this.items = RmFactory.LocatableList <ContentItem>(this, items);
            }

            SetAttributeDictionary();
            CheckInvariants();
        }
Example #8
0
        public ItemSingle(DvText name, string archetypeNodeId, Support.Identification.UidBasedId uid,
                          Link[] links, Archetyped archetypeDetails, FeederAudit feederAudit, Element item)
            : base(name, archetypeNodeId, uid, links, archetypeDetails, feederAudit)
        {
            Check.Require(item != null, "item must not be null");

            this.item = item;
            if (this.item != null)
            {
                this.item.Parent = this;
            }

            SetAttributeDictionary();
            CheckInvariants();
        }
Example #9
0
        protected CareEntry(DvText name, string archetypeNodeId, Support.Identification.UidBasedId uid,
                            Link[] links, Archetyped archetypeDetails, FeederAudit feederAudit,
                            CodePhrase language, CodePhrase encoding, PartyProxy subject, PartyProxy proider,
                            Participation[] otherParticipations, ObjectRef workflowId, ItemStructure protocol,
                            ObjectRef guidelineId)
            : base(name, archetypeNodeId, uid, links, archetypeDetails, feederAudit,
                   language, encoding, subject, proider, otherParticipations, workflowId)
        {
            this.protocol = protocol;
            if (this.protocol != null)
            {
                this.protocol.Parent = this;
            }

            this.guidelineId = guidelineId;
        }
Example #10
0
        public AdminEntry(DvText name, string archetypeNodeId, Support.Identification.UidBasedId uid,
                          Link[] links, Archetyped archetypeDetails, FeederAudit feederAudit,
                          CodePhrase language, CodePhrase encoding, PartyProxy subject, PartyProxy proider,
                          Participation[] otherParticipations, ObjectRef workflowId,
                          ItemStructure data)
            : base(name, archetypeNodeId, uid, links, archetypeDetails,
                   feederAudit, language, encoding, subject, proider, otherParticipations, workflowId)
        {
            Check.Require(data != null, "data must not be null");

            this.data        = data;
            this.data.Parent = this;

            SetAttributeDictionary();
            this.CheckInvariants();
        }
Example #11
0
        public Activity(DvText name, string archetypeNodeId, UidBasedId uid,
                        Link[] links, Archetyped archetypeDetails, FeederAudit feederAudit,
                        ItemStructure description, DvParsable timing, string actionArchetypeId)
            : base(name, archetypeNodeId, uid, links, archetypeDetails, feederAudit)
        {
            Check.Require(description != null, "description must not be null");
            Check.Require(timing != null, "timing must not be null");
            Check.Require(!string.IsNullOrEmpty(actionArchetypeId), "action_archetype_id must not be null or empty");

            this.description        = description;
            this.description.Parent = this;
            this.timing             = timing;
            this.actionArchetypeId  = actionArchetypeId;

            SetAttributeDictionary();
            CheckInvariants();
        }
Example #12
0
        public Folder(DvText name, string archetypeNodeId, UidBasedId uid,
                      List <Link> links,
                      Archetyped.Impl.Archetyped archetypeDetails, FeederAudit feederAudit,
                      System.Collections.Generic.IEnumerable <Folder> folders,
                      System.Collections.Generic.IEnumerable <ObjectRef> items)
            : base(name, archetypeNodeId, uid, links, archetypeDetails, feederAudit)
        {
            if (folders != null)
            {
                this.folders = RmFactory.List <Folder>(this, folders) as LocatableList <Folder>;
            }
            if (items != null)
            {
                this.items = new List <ObjectRef>(items);
            }

            SetAttributeDictionary();
        }
Example #13
0
        public Evaluation(DvText name, string archetypeNodeId, UidBasedId uid,
                          Link[] links, Archetyped archetypeDetails, FeederAudit feederAudit,
                          CodePhrase language, CodePhrase encoding, PartyProxy subject, PartyProxy proider,
                          Participation[] otherParticipations, ObjectRef workflowId, ItemStructure protocol,
                          ObjectRef guidelineId, ItemStructure data)
            : base(name, archetypeNodeId, uid, links, archetypeDetails, feederAudit, language,
                   encoding, subject, proider, otherParticipations, workflowId, protocol, guidelineId)
        {
            Check.Require(data != null, "data must not be null");

            this.data = data;
            if (this.data != null)
            {
                this.data.Parent = this;
            }

            SetAttributeDictionary();
            CheckInvariants();
        }
Example #14
0
        protected Entry(DvText name, string archetypeNodeId, Support.Identification.UidBasedId uid,
                        Link[] links, Archetyped archetypeDetails, FeederAudit feederAudit,
                        CodePhrase language, CodePhrase encoding, PartyProxy subject, PartyProxy proider,
                        Participation[] otherParticipations, ObjectRef workflowId)
            : base(name, archetypeNodeId, uid, links, archetypeDetails, feederAudit)
        {
            Check.Require(language != null, "language must not be null");
            Check.Require(encoding != null, "encoding must not be null");
            Check.Require(subject != null, "subject must not be null");

            this.language = language;
            this.encoding = encoding;
            this.subject  = subject;
            this.provider = proider;
            if (otherParticipations != null)
            {
                this.otherParticipations = new OpenEhr.AssumedTypes.List <Participation>(otherParticipations);
            }
            this.workflowId = workflowId;
        }
Example #15
0
        protected Event(DvText name, string archetypeNodeId, Support.Identification.UidBasedId uid,
                        Link[] links, Archetyped archetypeDetails, FeederAudit feederAudit,
                        DvDateTime time, T data,
                        ItemStructure.ItemStructure state)
            : base(name, archetypeNodeId,
                   uid, links, archetypeDetails, feederAudit)
        {
            Check.Require(time != null, "time must not be null");

            this.time = time;

            this.data = data;
            if (this.data != null)
            {
                this.data.Parent = this;
            }
            this.state = state;
            if (this.state != null)
            {
                this.state.Parent = this;
            }
        }
Example #16
0
        public Instruction(DvText name, string archetypeNodeId, UidBasedId uid,
                           Link[] links, Archetyped archetypeDetails, FeederAudit feederAudit,
                           CodePhrase language, CodePhrase encoding, PartyProxy subject, PartyProxy proider,
                           Participation[] otherParticipations, ObjectRef workflowId, ItemStructure protocol,
                           ObjectRef guidelineId, DvText narrative, DvDateTime expiryTime,
                           Activity[] activities, DvParsable wfDefinition)
            : base(name, archetypeNodeId, uid, links, archetypeDetails, feederAudit, language,
                   encoding, subject, proider, otherParticipations, workflowId, protocol, guidelineId)
        {
            Check.Require(narrative != null, "narrative must not be null");

            this.narrative  = narrative;
            this.expiryTime = expiryTime;
            if (activities != null)
            {
                this.activities = RmFactory.LocatableList <Activity>(this, activities);
            }
            this.wfDefinition = wfDefinition;

            SetAttributeDictionary();
            CheckInvariants();
        }
Example #17
0
        public History(DvText name, string archetypeNodeId, Support.Identification.UidBasedId uid,
                       Link[] links, Archetyped archetypeDetails, FeederAudit feederAudit,
                       DvDateTime origin, DvDuration period, DvDuration duration,
                       Event <T>[] events, ItemStructure.ItemStructure summary)
            : base(name, archetypeNodeId, uid, links, archetypeDetails, feederAudit)
        {
            this.period   = period;
            this.duration = duration;
            this.summary  = summary;
            if (this.summary != null)
            {
                this.summary.Parent = this;
            }
            if (events != null)
            {
                this.events = RmFactory.LocatableList <Event <T> >(this, events);
            }
            this.origin = origin;

            SetAttributeDictionary();
            CheckInvariants();
        }
Example #18
0
        public IntervalEvent(DvText name, string archetypeNodeId, Support.Identification.UidBasedId uid,
                             Link[] links, Archetyped archetypeDetails, FeederAudit feederAudit,
                             DvDateTime time, T data,
                             ItemStructure.ItemStructure state, DvDuration width,
                             int?sampleCount, DvCodedText mathFunction)
            : base(name, archetypeNodeId, uid, links, archetypeDetails, feederAudit, time, data, state)
        {
            Check.Require(width != null, "width must not be null");
            Check.Require(mathFunction != null, "math_function must not be null");

            this.width = width;

            if (sampleCount != null)
            {
                this.sampleCount    = (int)sampleCount;
                this.sampleCountSet = true;
            }

            this.mathFunction = mathFunction;

            SetAttributeDictionary();
            CheckInvariants();
        }
Example #19
0
 protected Item(DvText name, string archetypeNodeId, Support.Identification.UidBasedId uid,
                Link[] links, Archetyped archetypeDetails, FeederAudit feederAudit)
     : base(name, archetypeNodeId, uid, links, archetypeDetails, feederAudit)
 {
 }
Example #20
0
        public Folder(DvText name, string archetypeNodeId, UidBasedId uid,
                      List <Link> links, Archetyped.Impl.Archetyped archetypeDetails, FeederAudit feederAudit,
                      List <Folder> folders, List <ObjectRef> items)
            : base(name, archetypeNodeId, uid, links, archetypeDetails, feederAudit)
        {
            LocatableList <Folder> locatableList = folders as LocatableList <Folder>;

            // LocatableList can not be constructed without a parent, hence will not have a parent of this object is it is yet to be constructed
            Check.Require(locatableList == null, "folders must not be of type LocatableList with another parent");

            if (folders != null)
            {
                this.folders = RmFactory.List <Folder>(this, folders) as LocatableList <Folder>;
            }
            this.items = items;

            SetAttributeDictionary();
        }