コード例 #1
0
ファイル: Action.cs プロジェクト: nickvane/OpenEHR
        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();
        }
コード例 #2
0
ファイル: Element.cs プロジェクト: nickvane/OpenEHR
        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();
        }
コード例 #3
0
ファイル: Cluster.cs プロジェクト: nickvane/OpenEHR
        public Cluster(DvText name, string archetypeNodeId, Support.Identification.UidBasedId uid,
            Link[] links, Archetyped archetypeDetails, FeederAudit feederAudit, Item[] items)
            : base(name, archetypeNodeId, uid, links, archetypeDetails, feederAudit)
        {
            if (items != null)
            {
                this.items = RmFactory.LocatableList<Item>(this, items);
            }

            SetAttributeDictionary();
            CheckInvariants();
        }
コード例 #4
0
ファイル: ItemSingle.cs プロジェクト: nickvane/OpenEHR
        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();
        }
コード例 #5
0
ファイル: Folder.cs プロジェクト: nickvane/OpenEHR
        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();
        }
コード例 #6
0
ファイル: Locatable.cs プロジェクト: nickvane/OpenEHR
        protected Locatable(DvText name, string archetypeNodeId, Support.Identification.UidBasedId uid,
            AssumedTypes.List<Link> links, Archetyped archetypeDetails, FeederAudit feederAudit)
            : this()
        {
            Check.Require(name != null, "name must not be null");
            Check.Require(!string.IsNullOrEmpty(archetypeNodeId), "archetype_node_id must not be null or empty");

            this.name = name;
            this.archetypeNodeId = archetypeNodeId;
            this.uid = uid;
            this.links = links;
            this.archetypeDetails = archetypeDetails;
            this.feederAudit = feederAudit;
        }
コード例 #7
0
ファイル: Folder.cs プロジェクト: nickvane/OpenEHR
        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();
        }
コード例 #8
0
ファイル: AdminEntry.cs プロジェクト: nickvane/OpenEHR
        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();
        }
コード例 #9
0
        public override bool Equals(object obj)
        {
            DvText textValue = obj as DvText;

            if (textValue == null)
            {
                return(false);
            }

            if (textValue.GetType() != this.GetType())
            {
                return(false);
            }

            return(this.Value.Equals(textValue.Value));
        }
コード例 #10
0
ファイル: Activity.cs プロジェクト: nickvane/OpenEHR
        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();
        }
コード例 #11
0
ファイル: EhrStatus.cs プロジェクト: nickvane/OpenEHR
        public EhrStatus(ArchetypeId archetypeId, DvText name, ObjectVersionId uid, PartySelf subject, 
            bool isQueryable, bool isModifiable, ItemStructure otherDetails)
        {
            if (uid != null)
            this.Uid = uid;

            this.subject = subject;

            this.isQueryable = isQueryable;
            this.isQueryableSet = true;

            this.isModifiable = isModifiable;
            this.isModifiableSet = true;

            this.otherDetails = otherDetails;

            base.SetBaseData(archetypeId.Value, name);
        }
コード例 #12
0
ファイル: Entry.cs プロジェクト: nickvane/OpenEHR
        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;
        }
コード例 #13
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();
        }
コード例 #14
0
ファイル: Instruction.cs プロジェクト: nickvane/OpenEHR
        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();
        }
コード例 #15
0
ファイル: Contact.cs プロジェクト: nickvane/OpenEHR
 protected Contact(string archetypeNodeId, DvText name, OpenEhr.RM.Demographic.Address[] addresses)
     : base(archetypeNodeId, name)
 {
     Addresses = new PathableList<Address>(this, addresses);
 }
コード例 #16
0
ファイル: Contact.cs プロジェクト: nickvane/OpenEHR
 public Contact(string archetypeNodeId, DvText name, OpenEhr.RM.Demographic.Address[] addresses)
     : base(archetypeNodeId, name, addresses)
 {
 }
コード例 #17
0
 public XmlSerializableExtract(string archetypeNodeId, DvText name, HierObjectId systemId, ExtractChapter[] chapters)
     : base(archetypeNodeId, name, systemId)
 {
     foreach (ExtractChapter chapter in chapters)
         this.Chapters.Add(chapter);
 }
コード例 #18
0
ファイル: Actor.cs プロジェクト: nickvane/OpenEHR
 protected Actor(string archetypeNodeId, DvText name)
     : base(archetypeNodeId, name)
 {
 }
コード例 #19
0
ファイル: Locatable.cs プロジェクト: nickvane/OpenEHR
        protected void SetBaseData(string archetypeNodeId, DvText name)
        {
            Check.Invariant(attributesDictionary != null, "Attributes diction must not be null");

            Check.Require(!string.IsNullOrEmpty(archetypeNodeId), "archetype node id must not be null or empty");
            Check.Require(name != null, "name must not be null");
            Check.Require(!string.IsNullOrEmpty(name.Value), "name value must not be null or empty");

            Check.Assert(this.archetypeNodeId == null, "archetype node id attribute must be null");
            //Check.Assert(base.attributesDictionary["name"] == null, "archetype node id attributes item must be null");
            this.archetypeNodeId = archetypeNodeId;

            Check.Assert(this.name == null, "name attribute must be null");
            //Check.Assert(attributesDictionary["name"] == null, "name attributes item must be null");

            this.name = name;

            SetAttributeDictionary();
            CheckInvariants();
        }
コード例 #20
0
ファイル: PartyRelationship.cs プロジェクト: nickvane/OpenEHR
 protected PartyRelationship(string archetypeNodeId, DvText name, PartyRef target)
     : base(archetypeNodeId, name)
 {
     Target = target;
 }
コード例 #21
0
ファイル: PartyRelationship.cs プロジェクト: nickvane/OpenEHR
 public PartyRelationship(string archetypeNodeId, DvText name, PartyRef target)
     : base(archetypeNodeId, name, target)
 {
 }
コード例 #22
0
ファイル: Capability.cs プロジェクト: nickvane/OpenEHR
 protected Capability(string archetypeNodeId, DvText name, ItemStructure credentials)
     : base(archetypeNodeId, name)
 {
     Credentials = credentials;
 }
コード例 #23
0
ファイル: PartyIdentity.cs プロジェクト: nickvane/OpenEHR
 protected PartyIdentity(string archetypeNodeId, DvText name, ItemStructure details)
     : base(archetypeNodeId, name)
 {
     Details = details;
 }
コード例 #24
0
ファイル: DataStructure.cs プロジェクト: nickvane/OpenEHR
 protected DataStructure(DvText name, string archetypeNodeId, Support.Identification.UidBasedId uid,
     Link[] links, Archetyped archetypeDetails, FeederAudit feederAudit)
     : base(name, archetypeNodeId, uid, links, archetypeDetails, feederAudit)
 {
 }
コード例 #25
0
ファイル: Capability.cs プロジェクト: nickvane/OpenEHR
 public Capability(string archetypeNodeId, DvText name, ItemStructure credentials)
     : base(archetypeNodeId, name, credentials)
 {
 }
コード例 #26
0
 public XmlSerializableExtract(string archetypeNodeId, DvText name, HierObjectId systemId)
     : base(archetypeNodeId, name, systemId)
 {
 }
コード例 #27
0
ファイル: Role.cs プロジェクト: nickvane/OpenEHR
 protected Role(string archetypeNodeId, DvText name, PartyRef performer)
     : base(archetypeNodeId, name)
 {
     Performer = performer;
 }
コード例 #28
0
ファイル: Party.cs プロジェクト: nickvane/OpenEHR
 protected Party(string archetypeNodeId, DvText name)
     : base(archetypeNodeId, name)
 {
 }
コード例 #29
0
ファイル: Contact.cs プロジェクト: nickvane/OpenEHR
 public Contact(string archetypeNodeId, DvText name)
     : base(archetypeNodeId, name, new OpenEhr.RM.Demographic.Address[] { })
 {
 }
コード例 #30
0
ファイル: PartyIdentity.cs プロジェクト: nickvane/OpenEHR
 public PartyIdentity(string archetypeNodeId, DvText name, ItemStructure details)
     : base(archetypeNodeId, name, details)
 {
 }
コード例 #31
0
ファイル: Role.cs プロジェクト: nickvane/OpenEHR
 public Role(string archetypeNodeId, DvText name, PartyRef performer)
     : base(archetypeNodeId, name, performer)
 {
 }