Ejemplo n.º 1
0
        public Contribution(HierObjectId uid, AuditDetails audit)
            : this(uid)
        {
            Check.Require(audit != null, "audit must not be null");

            this.audit = audit;
        }
Ejemplo n.º 2
0
        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));
        }
Ejemplo n.º 3
0
        /// <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();
        }
Ejemplo n.º 4
0
        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;
        }
Ejemplo n.º 5
0
 public XmlSerializableExtract(string archetypeNodeId, DvText name, HierObjectId systemId, ExtractChapter[] chapters)
     : base(archetypeNodeId, name, systemId)
 {
     foreach (ExtractChapter chapter in chapters)
         this.Chapters.Add(chapter);
 }
Ejemplo n.º 6
0
 public XmlSerializableExtract(string archetypeNodeId, DvText name, HierObjectId systemId)
     : base(archetypeNodeId, name, systemId)
 {
 }
Ejemplo n.º 7
0
 public ExtractEntityIdentifier(HierObjectId entityId, PartyIdentified subject)
 {
     this.entityId = entityId;
     this.subject = subject;
 }
Ejemplo n.º 8
0
 protected void RemoveVersion(ObjectVersionId uid, HierObjectId ehrId, string rmTypeName)
 {
     ObjectRef version = new ObjectRef(uid, ehrId.Value, rmTypeName);
     versions.Remove(version);
 }
Ejemplo n.º 9
0
 public static ObjectRef ObjectRef(HierObjectId contributionUid, HierObjectId systemId)
 {
     return new ObjectRef(contributionUid, systemId.Value, RmFactory.GetRmTypeName(typeof(Contribution)));
 }
Ejemplo n.º 10
0
 public static ObjectRef ObjectRef(Contribution contribution, HierObjectId systemId)
 {
     return new ObjectRef(contribution.Uid, systemId.Value, contribution.RmTypeName);
 }
Ejemplo n.º 11
0
        Contribution(HierObjectId uid)
        {
            Check.Require(uid != null, "uid must not be null");

            this.uid = uid;
        }
Ejemplo n.º 12
0
 /// <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());
 }
Ejemplo n.º 13
0
 public ObjectVersionId(HierObjectId objectId, string creatingSystemId, VersionTreeId versionTreeId)
     : this(objectId.Value + "::" + creatingSystemId + "::" + versionTreeId.Value)
 {
 }
Ejemplo n.º 14
0
 public ObjectVersionId(HierObjectId objectId, string creatingSystemId, VersionTreeId versionTreeId)
     : this(objectId.Value + "::" + creatingSystemId + "::" + versionTreeId.Value)
 {
 }
Ejemplo n.º 15
0
 /// <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()));
 }