Uploaded image for project: 'FHIR Specification Feedback'
  1. FHIR Specification Feedback
  2. FHIR-44814

Uses incorrect Environment Variable escape character, (and a typo)

    XMLWordPrintableJSON

Details

    • Icon: Technical Correction Technical Correction
    • Resolution: Persuasive
    • Icon: Highest Highest
    • FHIR Core (FHIR)
    • R5
    • FHIR Infrastructure
    • FHIRPath (fluentpath)
    • Hide

      Correct the variable delimiting character to be consistent with the core fhirpath specification (` - backtic) as noted in the description.

      %`vs-[name]` // (string) full url for the provided HL7 value set with id [name]
      %`ext-[name]` // (string) full url for the provided HL7 extension with id [name]

      %`us-zip` = '[0-9]

      {5}

      (-[0-9]

      {4}

      ){0,1}'
       
      Also correct the factory example for creating a Coding which incorrectly shows calling the Quantity function

      Show
      Correct the variable delimiting character to be consistent with the core fhirpath specification (` - backtic) as noted in the description. %`vs- [name] ` // (string) full url for the provided HL7 value set with id  [name] %`ext- [name] ` // (string) full url for the provided HL7 extension with id  [name] %`us-zip` = ' [0-9] {5} (- [0-9] {4} ){0,1}'   Also correct the factory example for creating a Coding which incorrectly shows calling the Quantity function
    • Correction

    Description

      In the Environment Variables section the examples use the " (double quote) character to delimit a variable name that has reserved characters where fhirpath itself defines ` (backtic)

      %"vs-[name]" // (string) full url for the provided HL7 value set with id [name]
      %"ext-[name]" // (string) full url for the provided HL7 extension with id [name] 

      should be

      %`vs-[name]` // (string) full url for the provided HL7 value set with id [name]
      %`ext-[name]` // (string) full url for the provided HL7 extension with id [name]

      and 
      Observation.component.where(code.memberOf(%`vs-observation-vitalsignresult`))
      and
      %`us-zip` = '[0-9]{5}(-[0-9]{4}){0,1}'
       
      Also, in the factory section the example for creating a Coding shows calling the Quantity function
       
      Creates a Coding: <code>%factory.Quantity('http://loinc.org', '1234-5, 'An example test', '1.02')</code>
      That should read Coding

      Attachments

        Activity

          People

            Unassigned Unassigned
            brian.postlethwaite Brian Postlethwaite
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: