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

@i4mi/fhir_ch

v0.0.4

Published

Selected resources from FHIR CH implementation guides as TypeScript interfaces.

Downloads

13

Readme

FHIR® CH Typescript Interfaces

This library includes some interfaces for representing FHIR CH implementation guides and profiles. Due to the limitations of TypeScript interfaces, unfortunately not all constraints of the Implementation Guides can be represented.

This repository is in the early stages of development. It is intended for internal projects at the Institute of Medical Informatics I4MI at Bern University of Applied Sciences. You can use it for your own projects at your own risk, but there is no guarantee that the interfaces are correct or complete.

The interfaces are based on the FHIR® interfaces from @i4mi/fhir_r4.

Content Table

1 How to use

Install it using

npm i @i4mi/fhir_ch -D

After installing, you can import and use the interfaces in your application.

import {CHPatientEPR} from '@i4mi/fhir_ch';

let myPatient: CHPatientEPR = {
  resourceType: 'Patient',
  meta: {
    profile: [
      'http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-patient-epr'
    ]
  },
  resourceType: 'Patient',
  identifier: [
    {
      type : {
        coding : [
          {
            system : 'http://terminology.hl7.org/CodeSystem/v2-0203',
            code : 'MR'
          }
        ]
      },
      system : 'urn:oid:2.16.756.888888.3.1',
      value : '8733'
    }
  ],
  name: [
    {
      family : 'Brönnimann-Bertholet',
      given : [
        'Elisabeth'
      ]
    }
  ],
  gender: PatientAdministrativeGender.FEMALE,
  birthDate: '1937-05-03',
};

This then allows your IDE to highlight wrong or missing properties of your created ressource.

2 Interfaces and Type

2.1 CH Core

Interfaces for profiles from CH Core. This implementation guide is provided to support the use of FHIR® in Switzerland.

| Profile | Interface Name | Inherits from | Version | | ------- | -------------- | -------------- | --------| | CH Core Patient EPR| CHPatientEPR | Patient | 4.0.1 | | CH Core Document EPR| CHDocumentEPR | Bundle | 4.0.1 | | CH Core DocumentReference EPR| CHDocumentReferenceEPR | DocumentReference | 4.0.1 |

2.2 CH VACD

Interfaces for profiles from the CH VACD implementation guide. The CH-VACD implementation guide describes the FHIR® representation of the defined documents for the exchange of vaccination and immunization information. This implementation guide is dependent on the CH Core profiles which describes the Swiss specific resources.

| Profile | Interface Name | Inherits from | Version | | ------- | -------------- | -------------- | --------| | CH VACD Vaccination Record Document | CHVacdVaccinationRecordDocument | Bundle | 4.0.1 | | CH VACD Vaccination Record Composition | CHVacdCompositionVaccinationRecord | Composition | 4.0.1 | | CH VACD Immunization | CHVacdImmunization | Immunization | 4.0.1 | | CH VACD Basic Immunization | use CHVacdCondition | | not implemented | | CH VACD Past Illness | CHVacdPastIllness | CHVacdCondition | 4.0.1 | | CH VACD Condition | CHVacdCondition | Condition | 4.0.1 |

2.3 CH AllergyIntolerance

Interfaces for profiles from CH-AllergyIntolerance.

| Profile | Interface Name | Inherited from | Version | | ------- | -------------- | -------------- | --------| | CH Allergy Intolerance| CHAllergyIntolerance | AllergyIntolerance | 2.0.1 |

3 Legal

3.1 License

This software is published under an Apache 2.0 License.

3.2 FHIR® Trademark

FHIR® is the registered trademark of HL7 and is used with the permission of HL7. Use of the FHIR® trademark does not constitute endorsement of this product by HL7.

4 Changelog

| Version | Date | Changes | | ------- | ---------- | ------------------------- | | 0.0.4 | 2024-01-03 | - Update version numbers | | 0.0.3 | 2023-12-21 | - Add CH Core DocumentReference EPR | | 0.0.2 | 2023-12-12 | - Add CH Core Document EPR | | 0.0.1 | 2023-12-08 | - Add CHPatientEPR- Add CH VACD Profiles- Add CHAllergyIntolerance |