コード例 #1
0
        protected override void ReadXmlBase(System.Xml.XmlReader reader)
        {
            base.ReadXmlBase(reader);

            DesignByContract.Check.Assert(reader.LocalName == "data",
                                          "Expected LocalName is 'data', but it is " + reader.LocalName);
            this.data = new OpenEhr.RM.DataStructures.History.History <OpenEhr.RM.DataStructures.ItemStructure.ItemStructure>();
            this.data.ReadXml(reader);
            this.data.Parent = this;

            if (reader.LocalName == "state")
            {
                this.state = new OpenEhr.RM.DataStructures.History.History <OpenEhr.RM.DataStructures.ItemStructure.ItemStructure>();
                this.state.ReadXml(reader);
                this.state.Parent = this;
            }
        }
コード例 #2
0
ファイル: Observation.cs プロジェクト: nickvane/OpenEHR
        public Observation(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, History<ItemStructure> data, History<ItemStructure> state)
            : 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;
            this.state = state;
            if (this.state != null)
                this.state.Parent = this;

            SetAttributeDictionary();
            CheckInvariants();
        }
コード例 #3
0
ファイル: Observation.cs プロジェクト: nickvane/OpenEHR
        protected override void ReadXmlBase(System.Xml.XmlReader reader)
        {
            base.ReadXmlBase(reader);

            DesignByContract.Check.Assert(reader.LocalName == "data",
                "Expected LocalName is 'data', but it is " + reader.LocalName);
            this.data = new OpenEhr.RM.DataStructures.History.History<OpenEhr.RM.DataStructures.ItemStructure.ItemStructure>();
            this.data.ReadXml(reader);
            this.data.Parent = this;

            if (reader.LocalName == "state")
            {
                this.state = new OpenEhr.RM.DataStructures.History.History<OpenEhr.RM.DataStructures.ItemStructure.ItemStructure>();
                this.state.ReadXml(reader);
                this.state.Parent = this;
            }
        }