Ejemplo n.º 1
0
        public Group()
        {
            InstanceId = IDUtils.NewGuid();
            Id         = IDUtils.NewGuid();
            this.studyUnitRelPathNames = new List <string>();
            ConceptSchemeCompareTable  = new CompareTable()
            {
                CompareType = CompareTable.CompareTypes.ConceptScheme
            };
            ConceptCompareTable = new CompareTable()
            {
                CompareType = CompareTable.CompareTypes.Concept
            };
            VariableCompareTable = new CompareTable()
            {
                CompareType = CompareTable.CompareTypes.Variable
            };
            PurposeId       = IDUtils.NewGuid();
            ComparisonId    = IDUtils.NewGuid();
            SharedStudyUnit = new StudyUnit(); //Variables to be shared within the group
            SharedStudyUnit.Abstract.Title = SHARED_STUDY_UNIT_TITLE;
            Organization organization = new Organization();
            Member       member       = new Member();

            member.OrganizationId = organization.Id;
            SharedStudyUnit.AddMember(member);
            SharedStudyUnit.AddOrganization(organization);

            SharedStudyUnit.Samplings.Add(new Sampling());
            SharedStudyUnit.Samplings[0].MemberId  = member.Id;
            SharedStudyUnit.Samplings[0].DateRange = new DateRange(DateTime.Today, DateTime.Today);
        }
Ejemplo n.º 2
0
 public Response(Option type)
 {
     Id            = IDUtils.NewGuid();
     TypeCode      = type.Code;
     MissingValues = new List <MissingValue>();
     Layout        = null;
     Scale         = EDOConstants.DEF_SCALE;
 }
Ejemplo n.º 3
0
        public Response Dup()
        {
            Response newResponseModel = Clone() as Response;

            //replicate new answers itself
            newResponseModel.Id = IDUtils.NewGuid();
            return(newResponseModel);
        }
Ejemplo n.º 4
0
 public DataFile()
 {
     Id = IDUtils.NewGuid();
     GrossRecordStructureId   = IDUtils.NewGuid();
     RecordLayoutId           = IDUtils.NewGuid();
     PhysicalRecordSegment    = "Segment_" + IDUtils.NewGuid();
     PhysicalInstanceId       = IDUtils.NewGuid();
     DataFileIdentificationId = IDUtils.NewGuid();
     GrossFileStructureId     = IDUtils.NewGuid();
 }
Ejemplo n.º 5
0
 public ControlConstructScheme()
 {
     Id = IDUtils.NewGuid();
     QuestionConstructs      = new List <QuestionConstruct>();
     QuestionGroupConstructs = new List <QuestionGroupConstruct>();
     Statements         = new List <Statement>();
     IfThenElses        = new List <IfThenElse>();
     Sequence           = new Sequence();
     RenumberQuestionNo = true;
 }
Ejemplo n.º 6
0
        public Sampling()
        {
            Id                    = IDUtils.NewGuid();
            DateRange             = new DateRange();
            CollectionEventId     = IDUtils.NewGuid();
            ModeOfCollectionId    = IDUtils.NewGuid();
            CollectionSituationId = IDUtils.NewGuid();

            Universes         = new List <Universe>();
            SamplingNumbers   = new List <SamplingNumber>();
            CollectorTypeCode = DefaultCollectorType;
        }
Ejemplo n.º 7
0
 public Coverage()
 {
     Id = IDUtils.NewGuid();
     TopicalCoverageId  = IDUtils.NewGuid();
     TemporalCoverageId = IDUtils.NewGuid();
     SpatialCoverageId  = IDUtils.NewGuid();
     //it is not possible to be managed by List <string> since memo and code must be stored in a set
     Topics    = new List <CheckOption>();
     Keywords  = new List <Keyword>();
     DateRange = new DateRange();
     Areas     = new List <CheckOption>();
     GeographicStructureIdSuffix = IDUtils.NewGuid();
     GeographicIdSuffix          = IDUtils.NewGuid();
 }
Ejemplo n.º 8
0
        private static RenameResult RenameId(IIDPropertiesProvider obj, string propertyName, List <string> ids)
        {
            RenameResult result = new RenameResult(propertyName);
            string       id     = (string)PropertyPathHelper.GetValue(obj, propertyName);

            if (ids.Contains(id))
            {
                string newId = IDUtils.NewGuid();
                PropertyPathHelper.SetValue(obj, propertyName, newId);
                result.OldId = id;
                result.NewId = newId;
                return(result);
            }
            return(result);
        }
Ejemplo n.º 9
0
        public StudyUnit()
        {
            this.Id = IDUtils.NewGuid();                                        //1

            this.Events                  = new List <Event>();                  //*1
            this.Members                 = new List <Member>();                 //*2
            this.Organizations           = new List <Organization>();           //*3
            this.Abstract                = new Abstract();                      //*4
            this.Coverage                = new Coverage();                      //*5
            this.FundingInfos            = new List <FundingInfo>();            //*6
            this.Universes               = new List <Universe>();               //*7
            this.Samplings               = new List <Sampling>();               //*8
            this.ConceptSchemes          = new List <ConceptScheme>();          //*9
            this.Questions               = new List <Question>();               //*10
            this.CategorySchemes         = new List <CategoryScheme>();         //*11
            this.CodeSchemes             = new List <CodeScheme>();             //*12
            this.VariableScheme          = new VariableScheme();                //*13
            this.Variables               = new List <Variable>();               //*14
            this.DataSets                = new List <DataSet>();                //*15
            this.DataFiles               = new List <DataFile>();               //*16
            this.ControlConstructSchemes = new List <ControlConstructScheme>(); //*17
            this.QuestionGroups          = new List <QuestionGroup>();
            this.Books           = new List <Book>();
            this.StatisticsInfos = new List <StatisticsInfo>();

            this.InstanceId                  = IDUtils.NewGuid(); //2
            this.UniverseSchemeId            = IDUtils.NewGuid(); //3
            this.ConceptualComponentId       = IDUtils.NewGuid(); //4
            this.GeographicStructureSchemeId = IDUtils.NewGuid(); //5
            this.DataCollectionId            = IDUtils.NewGuid(); //6
            this.QuestionSchemeId            = IDUtils.NewGuid(); //7
            this.LogicalProductId            = IDUtils.NewGuid(); //8
            this.DataRelationshipId          = IDUtils.NewGuid(); //9
            this.PhysicalDataProductId       = IDUtils.NewGuid(); //10
            this.PhysicalStructureSchemeId   = IDUtils.NewGuid(); //11
            this.RecordLayoutSchemeId        = IDUtils.NewGuid(); //12
            this.ArchiveId            = IDUtils.NewGuid();        //13
            this.OrganizationSchemeId = IDUtils.NewGuid();        //14
            this.MethodologyId        = IDUtils.NewGuid();        //15
            this.ProcessingEventId    = IDUtils.NewGuid();        //16
        }
Ejemplo n.º 10
0
 public Question()
 {
     Id       = IDUtils.NewGuid();
     Response = new Response();
 }
Ejemplo n.º 11
0
 public VariableScheme()
 {
     Id = IDUtils.NewGuid();
 }
Ejemplo n.º 12
0
 public DataSet()
 {
     Id            = IDUtils.NewGuid();
     VariableGuids = new List <string>();
 }
Ejemplo n.º 13
0
 public Code()
 {
     Id = IDUtils.NewGuid();
 }
Ejemplo n.º 14
0
 public Universe()
 {
     IsMain = false;
     Id     = IDUtils.NewGuid();
     SamplingProcedureId = IDUtils.NewGuid();
 }
Ejemplo n.º 15
0
 public Event()
 {
     Id        = IDUtils.NewGuid();
     DateRange = new DateRange();
 }
Ejemplo n.º 16
0
 public GroupId()
     : this(IDUtils.NewGuid(), IDUtils.NewGuid())
 {
 }
Ejemplo n.º 17
0
 public ConceptScheme()
 {
     Id       = IDUtils.NewGuid();
     Concepts = new List <Concept>();
 }
Ejemplo n.º 18
0
 public Variable()
 {
     this.Id       = IDUtils.NewGuid();
     this.Response = new Response();
 }
Ejemplo n.º 19
0
 public Abstract()
 {
     Id        = IDUtils.NewGuid();
     PurposeId = IDUtils.NewGuid();
     SummaryId = IDUtils.NewGuid();
 }
Ejemplo n.º 20
0
 public CodeScheme()
 {
     Id    = IDUtils.NewGuid();
     Codes = new List <Code>();
 }
Ejemplo n.º 21
0
 public Concept()
 {
     Id = IDUtils.NewGuid();
 }
Ejemplo n.º 22
0
 public Statement()
 {
     Id = IDUtils.NewGuid();
 }
Ejemplo n.º 23
0
 public QuestionConstruct()
 {
     Id = IDUtils.NewGuid();
 }
Ejemplo n.º 24
0
 public QuestionGroup()
 {
     Id          = IDUtils.NewGuid();
     QuestionIds = new List <string>();
 }
Ejemplo n.º 25
0
 public CategoryScheme()
 {
     Id         = IDUtils.NewGuid();
     Categories = new List <Category>();
 }
Ejemplo n.º 26
0
 public Organization(string organizationName)
 {
     Id = IDUtils.NewGuid();
     OrganizationName = organizationName;
 }
Ejemplo n.º 27
0
 public IfThenElse()
 {
     Id          = IDUtils.NewGuid();
     IfCondition = new IfCondition();
     ElseIfs     = new List <ElseIf>();
 }
Ejemplo n.º 28
0
 public FundingInfo()
 {
     Id           = IDUtils.NewGuid();
     DateRange    = new DateRange();
     Organization = new Organization();
 }
Ejemplo n.º 29
0
 public Sequence()
 {
     Id = IDUtils.NewGuid();
     ControlConstructIds = new List <string>();
 }
Ejemplo n.º 30
0
 public Category()
 {
     Id = IDUtils.NewGuid();
 }