Coder Social home page Coder Social logo

fhir-resources-r4's People

Contributors

dependabot[bot] avatar dickch avatar heg2 avatar i4mi avatar ies1 avatar mtm-8 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

nahakiole

fhir-resources-r4's Issues

Add type for resourceType

Momentan ist das ResourceType Property vom Typ string, aber die möglichen Werte sind bekannt und endlich. Könnte man durch ein Enum oder Type ersetzen.

[ReferenceError] when using enums

There is an fhir is not defined reference error, when we try to use the enums inside the declared module.
Should be a problem with the resource generation from the definition.json files.

[undefined] as type of interface keys

There are some cases, where the type of a key is undefined.

interface Element {
        id?: undefined;
        ...
interface SimpleQuantity extends Quantity {
        comparator?: undefined;
        ...

Should be a problem with the resource generation from the definition.json files.

value[x] properties with 1..1 cardinality are not properly represented in interface

For example, QuestionnaireItemAnswerOption expects each of the optional Value[x] properties (ValueInteger, ValueDate, ValueCoding, ValueString, etc.) instead of only exactly one of them.
This seems not to be a problem when the value[x] cardinality is 0..1 (e.g. with Observation / value[x]), but only when the cardinality is 1..1.

Using with NodeJS

Not working in NodeJS because NodeJS doesn't support XMLHttpRequest and has to be installed manually and included in the global namespace to work.

Could you update this to make it work with NodeJS?

isInPeriod is not inclusive for end years

When the end attribute of a period is only a year (or a year and a month), it is not inclusive.
E.g. the following returns false, but should be true

isInperiod
  ({
    start: '2022',
    end: '2023'
  }, 
  '2023-02-01'
)

Test suite is already adjusted in Branch 34-fix-isInPeriod

SampledData.dimensions positiveInt type

The type of the "dimensions" property on the "SampleData" interface is set to "positiveInt".

"positiveInt" is declared as an alias for "string". This results in the "dimensions" property being encoded as "string" when a "SampleData" object is converted to json. This causes the validation of the fhir resource to fail.

I haven't tested this, but I imagine the problem occurs wherever "positiveInt" is used, as well as for other integer types that have been defined as "string".

Test coverage for api-methods

When you run npm run test, it shows that apiMethods.ts has no coverage.

At some time, we should write tests for this.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.