FHIR Chat · Fhir package for Typescript/Javascript · javascript

Stream: javascript

Topic: Fhir package for Typescript/Javascript


view this post on Zulip Geoffrey BAUDIN (Mar 18 2019 at 22:12):

HI all,
I'm proud to announce the publication on NPM of a library that checks at runtime and provide strong types of FHIR R4 resources .
Please take a look at: https://www.npmjs.com/package/@ahryman40k/ts-fhir-types.
I'm waiting for your comments.

view this post on Zulip Brian Kaney (Mar 19 2019 at 02:17):

Hello @Geoffrey BAUDIN -- the package.json license says ISC, but the LICENSE file in the root is GPL. Which one is it?

view this post on Zulip Geoffrey BAUDIN (Mar 20 2019 at 08:44):

@Brian Kaney thank you for your comment, the package.json licence has been updated to GPLv3

view this post on Zulip Geoffrey BAUDIN (Mar 20 2019 at 21:15):

To generate my library I used definition from https://www.hl7.org/fhir/fhir.schema.json.zip and to test it, I use examples from https://www.hl7.org/fhir/examples-json.zip.
But I found a mismatch between definition and samples.
For AllergyIntolerance:

  • Definition says
    "clinicalStatus": {
    "description": "The clinical status of the allergy or intolerance.",
    "enum": [
    "active",
    "inactive",
    "resolved"
    ]
    },

  • In allergyintolerance-example.json:
    "clinicalStatus": {
    "coding": [
    {
    "system": "http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical",
    "code": "active",
    "display": "Active"
    }
    ]
    },

Enum vs Array<Coding> which one is right ?

view this post on Zulip Grahame Grieve (Mar 20 2019 at 21:28):

I think you've got a version problem somewhere. The definition of clinical status is

       "clinicalStatus": {
          "description": "The clinical status of the allergy or intolerance.",
          "$ref": "#/definitions/CodeableConcept"
        },

view this post on Zulip Geoffrey BAUDIN (Mar 20 2019 at 21:40):

so where can i download the right one ?


Last updated: Apr 12 2022 at 19:14 UTC