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(); }
public InstructionDetails(LocatableRef instructionId, string activityId, ItemStructure wfDetails) : this() { Check.Require(instructionId != null, "instruction_id must not be null"); Check.Require(!string.IsNullOrEmpty(activityId), "activity_id must not be null or empty"); this.instructionId = instructionId; this.activityId = activityId; this.wfDetails = wfDetails; if (this.wfDetails != null) this.wfDetails.Parent = this; SetAttributeDictionary(); }
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(); }
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(); }
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); }
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(); }
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(); }
public EventContext(DvDateTime startTime, DvDateTime endTime, DvCodedText setting, string location, PartyIdentified healthCareFacility, ItemStructure otherContext, Participation[] participations) : this() { Check.Require(startTime != null, "start_time must not be null"); Check.Require(setting != null, "setting must not be null"); this.startTime = startTime; this.endTime = endTime; this.setting = setting; this.location = location; this.healthCareFacility = healthCareFacility; this.otherContext = otherContext; if (this.otherContext != null) this.otherContext.Parent = this; if (participations != null) this.participations = new OpenEhr.AssumedTypes.List<Participation>(participations); SetAttributeDictionary(); this.CheckInvariants(); }
public PartyIdentity(string archetypeNodeId, DvText name, ItemStructure details) : base(archetypeNodeId, name, details) { }
public Capability(string archetypeNodeId, DvText name, ItemStructure credentials) : base(archetypeNodeId, name, credentials) { }
protected Capability(string archetypeNodeId, DvText name, ItemStructure credentials) : base(archetypeNodeId, name) { Credentials = credentials; }
protected PartyIdentity(string archetypeNodeId, DvText name, ItemStructure details) : base(archetypeNodeId, name) { Details = details; }
internal void ReadXml(XmlReader reader) { reader.ReadStartElement(); reader.MoveToContent(); DesignByContract.Check.Assert(reader.LocalName == "start_time", "Expected LocalName is 'start_time', but it is " + reader.LocalName); this.startTime = new OpenEhr.RM.DataTypes.Quantity.DateTime.DvDateTime(); this.startTime.ReadXml(reader); if (reader.LocalName == "end_time") { this.endTime = new OpenEhr.RM.DataTypes.Quantity.DateTime.DvDateTime(); this.endTime.ReadXml(reader); } if (reader.LocalName == "location") { this.location = reader.ReadElementString("location", RmXmlSerializer.OpenEhrNamespace); } DesignByContract.Check.Assert(reader.LocalName == "setting", "Expected LocalName is 'setting', but it is " + reader.LocalName); this.setting = new OpenEhr.RM.DataTypes.Text.DvCodedText(); this.setting.ReadXml(reader); if (reader.LocalName == "other_context") { string otherContextType = reader.GetAttribute("type", RmXmlSerializer.XsiNamespace); this.otherContext = OpenEhr.RM.Common.Archetyped.Impl.Locatable.GetLocatableObjectByType(otherContextType) as ItemStructure; if (this.otherContext == null) throw new InvalidOperationException("otherContextType must be subtype of ItemStructure " + otherContextType); this.otherContext.ReadXml(reader); this.otherContext.Parent = this; } if (reader.LocalName == "health_care_facility") { this.healthCareFacility = new OpenEhr.RM.Common.Generic.PartyIdentified(); this.healthCareFacility.ReadXml(reader); } if (reader.LocalName == "participations") { this.participations = new OpenEhr.AssumedTypes.List<OpenEhr.RM.Common.Generic.Participation>(); do { OpenEhr.RM.Common.Generic.Participation p = new OpenEhr.RM.Common.Generic.Participation(); p.ReadXml(reader); this.participations.Add(p); } while (reader.LocalName == "participations"); } Check.Assert(reader.NodeType == System.Xml.XmlNodeType.EndElement, "Expected endElement of EventContext."); reader.ReadEndElement(); reader.MoveToContent(); this.SetAttributeDictionary(); }
public EhrStatus(ObjectVersionId uid, PartySelf subject, bool isQueryable, bool isModifiable, ItemStructure otherDetails) : this(new ArchetypeId(defaultArchetypeId), new DvText(defaultName), uid, subject, isQueryable, isModifiable, otherDetails) { }
public EhrStatus(PartySelf subject, bool isQueryable, bool isModifiable, ItemStructure otherDetails) : this(null, subject, isQueryable, isModifiable, otherDetails) { }
protected override void ReadXmlBase(XmlReader reader) { base.ReadXmlBase(reader); DesignByContract.Check.Assert(reader.LocalName == "subject", "Expected LocalName is 'subject', but it is " + reader.LocalName); this.subject = new PartySelf(); this.subject.ReadXml(reader); DesignByContract.Check.Assert(reader.LocalName == "is_queryable", "Expected LocalName is 'is_queryable', but it is " + reader.LocalName); this.isQueryable = reader.ReadElementContentAsBoolean("is_queryable", RmXmlSerializer.OpenEhrNamespace); //this.isQueryableSet = true; reader.MoveToContent(); DesignByContract.Check.Assert(reader.LocalName == "is_modifiable", "Expected LocalName is 'is_modifiable', but it is " + reader.LocalName); this.isModifiable = reader.ReadElementContentAsBoolean("is_modifiable", RmXmlSerializer.OpenEhrNamespace); //this.isModifiableSet = true; reader.MoveToContent(); if (reader.LocalName == "other_details") { string otherDetailsType = reader.GetAttribute("type", RmXmlSerializer.XsiNamespace); DesignByContract.Check.Assert(!string.IsNullOrEmpty(otherDetailsType), "otherDetailsType must not be null or empty."); this.otherDetails = Locatable.GetLocatableObjectByType(otherDetailsType) as ItemStructure; this.otherDetails.ReadXml(reader); } }