0.0.4 • Published 5 months ago

@i4mi/fhir_ch v0.0.4

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
5 months ago

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.

ProfileInterface NameInherits fromVersion
CH Core Patient EPRCHPatientEPRPatient4.0.1
CH Core Document EPRCHDocumentEPRBundle4.0.1
CH Core DocumentReference EPRCHDocumentReferenceEPRDocumentReference4.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.

ProfileInterface NameInherits fromVersion
CH VACD Vaccination Record DocumentCHVacdVaccinationRecordDocumentBundle4.0.1
CH VACD Vaccination Record CompositionCHVacdCompositionVaccinationRecordComposition4.0.1
CH VACD ImmunizationCHVacdImmunizationImmunization4.0.1
CH VACD Basic Immunizationuse CHVacdConditionnot implemented
CH VACD Past IllnessCHVacdPastIllnessCHVacdCondition4.0.1
CH VACD ConditionCHVacdConditionCondition4.0.1

2.3 CH AllergyIntolerance

Interfaces for profiles from CH-AllergyIntolerance.

ProfileInterface NameInherited fromVersion
CH Allergy IntoleranceCHAllergyIntoleranceAllergyIntolerance2.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

VersionDateChanges
0.0.42024-01-03- Update version numbers
0.0.32023-12-21- Add CH Core DocumentReference EPR
0.0.22023-12-12- Add CH Core Document EPR
0.0.12023-12-08- Add CHPatientEPR- Add CH VACD Profiles- Add CHAllergyIntolerance
0.0.4

5 months ago

0.0.3

5 months ago

0.0.3-beta.3

5 months ago

0.0.3-beta.4

5 months ago

0.0.3-beta.2

5 months ago

0.0.2

5 months ago

0.0.1-beta.3

5 months ago

0.0.3-beta.1

5 months ago

0.0.2-beta.1

5 months ago

0.0.2-beta.2

5 months ago

0.0.1-beta.2

6 months ago

0.0.1

6 months ago

0.0.1-beta.1

6 months ago