示例#1
0
 public Concept Concept()
 {
     return(new Concept
     {
         Id = Id,
         ParentId = ParentId,
         RootId = RootId,
         ExternalId = ExternalId,
         ExternalParentId = ExternalParentId,
         UniversalId = ConceptUrn.From(UniversalId),
         IsNumeric = IsNumeric,
         IsEventBased = IsEventBased,
         IsParent = IsParent,
         IsEncounterBased = IsEncounterBased,
         IsPatientCountAutoCalculated = IsPatientCountAutoCalculated,
         IsSpecializable = IsSpecializable,
         SqlSetFrom = SqlSetFrom,
         SqlSetWhere = SqlSetWhere,
         SqlFieldDate = SqlFieldDate,
         SqlFieldNumeric = SqlFieldNumeric,
         SqlFieldEvent = SqlFieldEvent,
         UiDisplayName = UiDisplayName,
         UiDisplayText = UiDisplayText,
         UiDisplaySubtext = UiDisplaySubtext,
         UiDisplayUnits = UiDisplayUnits,
         UiDisplayTooltip = UiDisplayTooltip,
         UiDisplayPatientCount = UiDisplayPatientCount,
         UiDisplayEventName = UiDisplayEventName,
         UiDisplayPatientCountByYear = ConceptPatientYearCountSerde.Deserialize(UiDisplayPatientCountByYear),
         UiNumericDefaultText = UiNumericDefaultText,
         EventTypeId = EventTypeId
     });
 }
示例#2
0
 public ConceptRecord(Concept c)
 {
     Id                           = c.Id;
     ParentId                     = c.ParentId;
     RootId                       = c.RootId;
     ExternalId                   = c.ExternalId;
     ExternalParentId             = c.ExternalParentId;
     UniversalId                  = c.UniversalId?.ToString();
     IsNumeric                    = c.IsNumeric;
     IsEventBased                 = c.IsEventBased;
     IsParent                     = c.IsParent;
     IsEncounterBased             = c.IsEncounterBased;
     IsPatientCountAutoCalculated = c.IsPatientCountAutoCalculated;
     IsSpecializable              = c.IsSpecializable;
     SqlSetFrom                   = c.SqlSetFrom;
     SqlSetWhere                  = c.SqlSetWhere;
     SqlFieldDate                 = c.SqlFieldDate;
     SqlFieldNumeric              = c.SqlFieldNumeric;
     SqlFieldEvent                = c.SqlFieldEvent;
     UiDisplayName                = c.UiDisplayName;
     UiDisplayText                = c.UiDisplayText;
     UiDisplaySubtext             = c.UiDisplaySubtext;
     UiDisplayUnits               = c.UiDisplayUnits;
     UiDisplayTooltip             = c.UiDisplayTooltip;
     UiDisplayEventName           = c.UiDisplayEventName;
     UiDisplayPatientCount        = c.UiDisplayPatientCount;
     UiDisplayPatientCountByYear  = ConceptPatientYearCountSerde.Serialize(c.UiDisplayPatientCountByYear);
     UiNumericDefaultText         = c.UiNumericDefaultText;
     EventTypeId                  = c.EventTypeId;
 }