npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@artezio/models

v0.1.14

Published

FHIR compatible observable models.

Downloads

7

Readme

@artezio/models

FHIR compatible observable models.

Installation

Using npm:

$ npm install -D @artezio/models

Using yarn:

$ yarn add -D @artezio/models

Library has peer dependency which you should know about. Install it with following command:

$ npm install @artezio/observable

 

Example

This models are mostly used with designer and player so it's enough to use it like this:

import { Questionnaire, QuestionnaireResponse } from '@artezio/models';

const questionnaire = new Questionnaire(/*initial questionnaire in JSON format, if needed*/);
const questionnaireResponse = new QuestionnaireResponse(questionnaire, /*initial questionnaireResponse in JSON format, if needed*/);

Then you should pass them straight to QuestionnaireDesigner and QuestionnairePlayer components.

 

Diagrams

Questionnaire

uml diagram

QuestionnaireResponse

uml diagram

Detailed description for models

Table of content

Questionnaire model

| Name | required | type | Description | | :---- | :------ | :--- | :----- | | id | true | string | Questionnaire identifier. Must be uniq among all questionnaires | | title | false | string | Questionnaire title | | description | false | string | Description for questionnaire | | items | false | array | Each element is Item model |

Item model

| Name | required | type | Description | | :---- | :------ | :--- | :----- | | id | true | string | Item identifier. Must be uniq among all Items within the questionnaire | | type | true | string | Should be imported as variable from @artezio/models. Variable names: STRING, ATTACHMENT, OPEN_CHOICE, CHOICE, TEXT, TIME, DATE_TIME, DATE, DECIMAL, BOOLEAN, MULTI_CHOICE. | | text | false | string | Question | | required | false | boolean | Whether item required or not | | enableWhen | false | array | Each element is Enable When | enableBehavior | false | string | Should be imported as variable from @artezio/models. Variable names are: OR, AND | | initialAnswers | false | array | Each element is Initial answer | | multipleFiles | false | boolean | Specific parametr especially for attachment items; Define whether user can apply multiple files(true) or single(false) | | options | false | array | Each element is Answer option |

Initial answer

| Name | required | type | Description | | :---- | :------ | :--- | :----- | | id | true | string | Initial answers identifier. Must be uniq within the item | | value | false | any | Initial answers value |

Enable when

| Name | required | type | Description | | :---- | :------ | :--- | :----- | | id | true | string | EnableWhen identifier. Must be uniq within the item | | operator | true | string | Should be imported as variable from @artezio/models. Variable names are: EXISTS, EQUAL, NOT_EQUAL, MORE, LESS, MORE_OR_EQUAL, LESS_OR_EQUAL. | | questionId | false | string | id of the particular item | | answer | false | any | expected answer fro particular question |

Answer option

| Name | required | type | Description | | :---- | :------ | :--- | :----- | | id | true | string | AnswerOption identifier. Must be uniq within the item | | value | false | any | Option value | | defaultSelected | false | boolean | Whether option must be selected by default( in items like choice and openChoice only one option should have this property set to true ) |

Questionnaire response model

| Name | required | type | Description | | :---- | :------ | :--- | :----- | | id | true | string | QuestionnaireResponse identifier. Must be uniq amon all QuestionnaireResponses | | questionnaireId | true | string | id of particular questionnaire for which this response is referenced | | items | false | array | Each element is Questionnaire response item model |

Questionnaire response item model

| Name | required | type | Description | | :---- | :------ | :--- | :----- | | id | true | string | QuestionnaireResponseItem identifier. Must be uniq amon all QuestionnaireResponseItems within QuestionnaireResponse | | questionId | true | string | id of particular item | | text | false | string | Question | | answers | false | array | Each element is Questionnaire response answer |

Questionnaire response item answer

| Name | required | type | Description | | :---- | :------ | :--- | :----- | | id | true | string | id must be uniq within QuestionnaireResponseItem | | value | false | any | Answer value | | items | false | array | Each element is Questionnaire response item model |