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()); }
internal static TempConceptRef Create(Concept concept) { if (concept == null) { return(null); } TempConceptRef conceptRef = new TempConceptRef(); conceptRef.ID = concept.ID; conceptRef.Version = concept.Version; conceptRef.AgencyID = concept.AgencyID; conceptRef.SchemeRef = TempConceptSchemeRef.Create(concept.ConceptScheme); return(conceptRef); }
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()); }