1.0.21 • Published 3 years ago

@molit/genomics-reporting-viewer v1.0.21

Weekly downloads
16
License
Apache-2.0
Repository
-
Last release
3 years ago

Genomics Reporting Viewer

build publish npm version npm license

Components for displaying FHIR genomic reports complying to the FHIR Genomics Reporting Implementation Guide.

Install

  • Run npm install @molit/genomics-reporting-viewer --save

Usage

Angular, React, Vue

  • Add the following to your
    • Angular: main.ts
    • React: index.js
    • Vue: main.js
import { applyPolyfills, defineCustomElements } from '@molit/genomics-reporting-viewer/loader';

applyPolyfills().then(() => { 
    // Surrounding defineCustomElemnts() with applyPolyfills() is only needed if older browsers are targeted
    defineCustomElements();
});
  • Only in Angular: In your app.module.ts add the following
import {CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';

@NgModule({
  schemas: [CUSTOM_ELEMENTS_SCHEMA]
})
  • Then you can use the element anywhere in your template, JSX, html etc

HTML/JavaScript

Script tag

  • Add the script tag <script type="module" src="https://unpkg.com/@molit/genomics-reporting-viewer/dist/genomics-reporting-viewer/genomics-reporting-viewer.esm.js"></script> to the head of your index.html
  • Then you can use the element anywhere in your template, JSX, html etc

Node Modules

  • Run npm install @molit/genomics-reporting-viewer --save
  • Add the script tag<script type='module' src="/node_modules/@molit/genomics-reporting-viewer/dist/genomics-reporting-viewer.esm.js"></script> to the head of your index.html
  • Then you can use the element anywhere in your template, JSX, html etc

Need more information? Check out the StencilJS Framework Integration Guide.

Components

NameDescriptionExampleExample Component
genomics-reportDisplays the given FHIR genomic report. Depends on genetic-variants.<genomics-report fhir-base-url="https://fhir.molit.eu/fhir" id-genomics-report="3972" ></genomics-report>:link:
genetic-variantsDisplays the given genetic variant as a table. Used by genomics-report.<genetic-variants genetic-observations='[...]' type="snv" gv-title="SNVs"></genetic-variants>:link:

Demo

Example Projects showcasing the usage of @molit/genomics-reporting-viewer

HTML

Vue.js


1.0.19

3 years ago

1.0.18

3 years ago

1.0.17

3 years ago

1.0.21

3 years ago

1.0.20

3 years ago

1.0.16

3 years ago

1.0.15

3 years ago

1.0.14

3 years ago

1.0.13

4 years ago

1.0.12

4 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago