Esempio n. 1
0
        internal MeasureMap(StructureMessage message)
        {
            Map(o => TempConceptRef.Create(o.Concept)).ToAttributeGroup("conceptRef")
            .Set(v => _measure = Create(message.GetConcept(v.ID, v.AgencyID, v.Version)))
            .GroupTypeMap(new TempConceptRefMap());

            Map(o => TempCodelistRef.Create(o.CodeList)).ToAttributeGroup("codelist")
            .Set(v => _measure.CodeList = message.GetCodeList(v.ID, v.AgencyID, v.Version))
            .GroupTypeMap(new TempCodelistRefMap());

            Map(o => o.TextFormat).ToElement("TextFormat", false)
            .Set(v => _measure.TextFormat = v)
            .ClassMap(() => new TextFormatMap());
        }
Esempio n. 2
0
        public CompoenentMap(StructureMessage message)
        {
            Map(o => TempConceptRef.Create(o.Concept)).ToAttributeGroup("conceptRef")
            .Set(v => _component = Create(message.GetConcept(v.ID, v.AgencyID, v.Version)))
            .GroupTypeMap(new TempConceptRefMap());

            Map(o => TempCodelistRef.Create(o.CodeList)).ToAttributeGroup("codelist")
            .Set(v => _component.CodeList = message.GetCodeList(v.ID, v.AgencyID, v.Version))
            .GroupTypeMap(new TempCodelistRefMap());

            Map(o => o.CrossSectionalAttachmentLevel).ToAttributeGroup("crossSectionalAttachmentLevel", CrossSectionalAttachmentLevel.None)
            .Set(v => _component.CrossSectionalAttachmentLevel = v)
            .GroupTypeMap(new CrossSectionalAttachmentLevelMap());

            Map(o => o.TextFormat).ToElement("TextFormat", false)
            .Set(v => _component.TextFormat = v)
            .ClassMap(() => new TextFormatMap());
        }