FHIR Chat · Create a Table in a Structure definition <comment> tag · IG creation

Stream: IG creation

Topic: Create a Table in a Structure definition <comment> tag


view this post on Zulip Brian Reinhold (Sep 13 2018 at 12:18):

I have a <comment> tag that is appears as follows in a 'dict' rendering :

Comments
The currently defined version codes used in this element are as follows:

FIELD CODE reference identifier
Hardware revision 531974 MDC_ID_PROD_SPEC_HW

Software revision 531975 MDC_ID_PROD_SPEC_SW Firmware revision 531976 MDC_ID_PROD_SPEC_FW Protocol 531977 MDC_ID_PROD_SPEC_PROTOCOL Continua version 532352 MDC_REG_CERT_DATA_CONTINUA_VERSION The above comes from the Continua Reg-Cert-Data-List attribute

More than one of these versions may be reported by a PHD. Each version reported by the PHG shall be encoded.

I would like to make this a readable table.

view this post on Zulip Grahame Grieve (Sep 13 2018 at 13:48):

use GFM table syntax

view this post on Zulip Brian Reinhold (Sep 13 2018 at 16:15):

use GFM table syntax

I tried

shall be encoded.&#xD;&#xA;&#xD;&#xA;
      |Description|CODE|Reference Identifier|&#xD;&#xA;
      |-|-|-|&#xD;&#xA;
      |Hardware revision|531974|MDC_ID_PROD_SPEC_HW|&#xD;&#xA;
      |Software revision|531975|MDC_ID_PROD_SPEC_SW|&#xD;&#xA;
      |Firmware revision|531976|MDC_ID_PROD_SPEC_FW|&#xD;&#xA;
      |Protocol|531977|MDC_ID_PROD_SPEC_PROTOCOL|&#xD;&#xA;
      |Continua version|532352|MDC_REG_CERT_DATA_CONTINUA_VERSION|&#xD;&#xA;
      The Continua version comes from the Continua Reg-Cert-Data-List attribute&#xD;&#xA;"

but it did not work. I am assuming that GFM means standard markdown. I was able to get something like a table using brute force (at least the text is aligned correctly) but there are no borders.

view this post on Zulip Eric Haas (Sep 13 2018 at 18:51):

add { :.grid} on the line right after it or used html and add grid as a class. Thats a little kramdown to trigger the css style for table class grid


Last updated: Apr 12 2022 at 19:14 UTC