private void generateElementInner(Profile profile, Profile.ElementDefinitionComponent d) { tableRowMarkdown("Definition", d.Formal, profile); tableRow("Control", "conformance-rules.html#conformance", d.DescribeCardinality() + summariseConditions(d.Condition)); tableRowNE("Binding", "terminologies.html", describeBinding(d)); if (d.NameReference != null) { tableRow("Type", null, "See " + d.NameReference); } else { tableRowNE("Type", "datatypes.html", describeTypes(profile, d.Type)); } tableRow("Is Modifier", "conformance-rules.html#ismodifier", displayBoolean(d.IsModifier)); tableRow("Must Support", "conformance-rules.html#mustSupport", displayBoolean(d.MustSupport)); tableRowMarkdown("Requirements", d.Requirements, profile); tableRow("Aliases", null, d.Synonym != null ? String.Join(", ", d.Synonym) : null); tableRowMarkdown("Comments", d.Comments, profile); tableRow("Max Length", null, d.MaxLength == null ? null : d.MaxLength.ToString()); tableRow("Fixed Value", null, d.Value != null ? d.Value.ForDisplay() : null); tableRow("Example", null, d.Example != null ? d.Example.ForDisplay() : null); tableRowNE("Invariants", null, describeInvariants(d.Constraint)); tableRow("LOINC Code", null, getMapping(profile, d, LOINC_MAPPING)); tableRow("SNOMED-CT Code", null, getMapping(profile, d, SNOMED_MAPPING)); }