@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 |