XMLWordPrintableJSON

Details

    • Icon: Technical Correction Technical Correction
    • Resolution: Persuasive
    • Icon: Medium Medium
    • FHIR Core (FHIR)
    • STU3
    • FHIR Infrastructure
    • (NA)
    • Correction
    • R5

    Description

      Some JSON examples in the documentation are formatted strangely.

      This example from the extensibility page is somewhat hard to read, due to the closing brackets not lining up. It looks like all of the resource examples get generated using this code: https://github.com/HL7/fhir/blob/7443edf3967093ee8c9f55e6a31e860bbabc5906/implementations/java/org.hl7.fhir.r4/src/org/hl7/fhir/r4/formats/JsonCreatorDirect.java. Which appears to be the equivalent of JSON.stringify(data, null, 2) in javascript.

      Here's an example of one such formatting block:

      { "resourceType" : "Patient", "extension" : [{ "url" : "http://hl7.org/fhir/StructureDefinition/patient-citizenship", "extension" : [{ "url" : "code", "valueCodeableConcept" : { "coding" : [

      { "system" : "urn:iso:std:iso:3166", "code" : "DE" }

      ] } }, { "url" : "period", "valuePeriod" :

      { "start" : "2009-03-14" }

      }] }] }

      Attachments

        Activity

          People

            Unassigned Unassigned
            nwhatt Nick Hatt
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: