public Contribution(HierObjectId uid, AuditDetails audit) : this(uid) { Check.Require(audit != null, "audit must not be null"); this.audit = audit; }
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value) { string valueString = value as string; if (valueString != null) { if (HierObjectId.IsValid(valueString)) { return(new HierObjectId(valueString)); } } return(base.ConvertFrom(context, culture, value)); }
/// <summary>Extract basic constructor</summary> /// <param name="systemId">System ID</param> protected Extract(string archetypeNodeId, DataTypes.Text.DvText name, HierObjectId systemId) : base(archetypeNodeId, name) { DesignByContract.Check.Require(systemId != null, "system ID must not be null"); this.systemId = systemId; base.Uid = new HierObjectId(Guid.NewGuid().ToString()); this.timeCreated = new DataTypes.Quantity.DateTime.DvDateTime(DateTime.Now); this.sequenceNr = 1; this.chapters = new List<ExtractChapter>(); // TODO: implement SetAttributeDictionary and CheckInvariant overrides SetAttributeDictionary(); CheckInvariants(); }
public EHR(string systemId, HierObjectId ehrId, DvDateTime timeCreated, ObjectRef ehrAccess, ObjectRef ehrStatus, ObjectRef directory, List<ObjectRef> compositions, List<ObjectRef> contributions) { Check.Require(!string.IsNullOrEmpty(systemId), "systemId must not be null or empty"); Check.Require(ehrId != null, "ehrId must not be null"); Check.Require(timeCreated != null, "timeCreated must not be null"); Check.Require(ehrAccess != null, "ehrAccess must not be null"); Check.Require(ehrStatus != null, "ehrStatus must not be null"); this.systemId = systemId; this.ehrId = ehrId; this.timeCreated = timeCreated; this.ehrAccess = ehrAccess; this.ehrStatus = ehrStatus; this.directory = directory; this.compositions = compositions; this.contributions = contributions; }
public XmlSerializableExtract(string archetypeNodeId, DvText name, HierObjectId systemId, ExtractChapter[] chapters) : base(archetypeNodeId, name, systemId) { foreach (ExtractChapter chapter in chapters) this.Chapters.Add(chapter); }
public XmlSerializableExtract(string archetypeNodeId, DvText name, HierObjectId systemId) : base(archetypeNodeId, name, systemId) { }
public ExtractEntityIdentifier(HierObjectId entityId, PartyIdentified subject) { this.entityId = entityId; this.subject = subject; }
protected void RemoveVersion(ObjectVersionId uid, HierObjectId ehrId, string rmTypeName) { ObjectRef version = new ObjectRef(uid, ehrId.Value, rmTypeName); versions.Remove(version); }
public static ObjectRef ObjectRef(HierObjectId contributionUid, HierObjectId systemId) { return new ObjectRef(contributionUid, systemId.Value, RmFactory.GetRmTypeName(typeof(Contribution))); }
public static ObjectRef ObjectRef(Contribution contribution, HierObjectId systemId) { return new ObjectRef(contribution.Uid, systemId.Value, contribution.RmTypeName); }
Contribution(HierObjectId uid) { Check.Require(uid != null, "uid must not be null"); this.uid = uid; }
/// <summary> /// Create first version of a new object version ID with specified creating system ID /// </summary> /// <param name="creatingSystemId">Creating system ID</param> /// <returns>First version of an object version ID</returns> public static ObjectVersionId CreateNew(HierObjectId creatingSystemId) { return new ObjectVersionId(HierObjectId.NewObjectId(), creatingSystemId.Value, new VersionTreeId()); }
public ObjectVersionId(HierObjectId objectId, string creatingSystemId, VersionTreeId versionTreeId) : this(objectId.Value + "::" + creatingSystemId + "::" + versionTreeId.Value) { }
/// <summary> /// Create first version of a new object version ID with specified creating system ID /// </summary> /// <param name="creatingSystemId">Creating system ID</param> /// <returns>First version of an object version ID</returns> public static ObjectVersionId CreateNew(HierObjectId creatingSystemId) { return(new ObjectVersionId(HierObjectId.NewObjectId(), creatingSystemId.Value, new VersionTreeId())); }