vet-data-utils-ts 0.4.10 → 0.4.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/dist/clinical-terminology.d.ts +3 -1
- package/dist/clinical-terminology.js +10 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -21,6 +21,9 @@ official SNOMED member territory. A returned candidate is never accepted
|
|
|
21
21
|
automatically: the professional must review and select it before creating the
|
|
22
22
|
FHIR resource. Membership does not replace national edition, attribution or
|
|
23
23
|
affiliate-license requirements. See the [official member list](https://www.snomed.org/members).
|
|
24
|
+
Veterinary immunizations use the distinct WHO ATCvet classification (group QI
|
|
25
|
+
for immunologicals), with SNOMED CT as an additional candidate system where
|
|
26
|
+
territorial use is permitted; ordinary human ATC is not substituted for it.
|
|
24
27
|
|
|
25
28
|
The deferred spreadsheet shape for member and employee role assignments is
|
|
26
29
|
documented in [`docs/member-import-contract.md`](docs/member-import-contract.md).
|
|
@@ -2,6 +2,8 @@ export declare const VeterinaryClinicalTerminologySystems: Readonly<{
|
|
|
2
2
|
readonly Loinc: "http://loinc.org";
|
|
3
3
|
readonly SnomedCt: "http://snomed.info/sct";
|
|
4
4
|
readonly Icd10: "http://hl7.org/fhir/sid/icd-10";
|
|
5
|
+
/** WHO Collaborating Centre ATCvet classification, distinct from human ATC. */
|
|
6
|
+
readonly AtcVet: "http://www.whocc.no/atcvet";
|
|
5
7
|
}>;
|
|
6
8
|
/**
|
|
7
9
|
* ISO 3166-1 alpha-2 territories enumerated by the official SNOMED
|
|
@@ -14,5 +16,5 @@ export declare const VeterinaryClinicalTerminologySystems: Readonly<{
|
|
|
14
16
|
* release, edition, attribution or affiliate-license requirements.
|
|
15
17
|
*/
|
|
16
18
|
export declare const SnomedMemberCountryCodes: readonly ["AR", "BZ", "CA", "CL", "CR", "SV", "JM", "US", "UY", "AD", "AT", "BE", "HR", "CY", "CZ", "DK", "EE", "FI", "FR", "DE", "HU", "IS", "IE", "IL", "JO", "LV", "LT", "LU", "MT", "NL", "NO", "PT", "QA", "SI", "SA", "SK", "ZA", "ES", "SE", "CH", "AE", "GB", "AU", "BN", "HK", "IN", "ID", "MY", "MN", "NZ", "KR", "SG", "TH", "UZ"];
|
|
17
|
-
export type VeterinaryCodedResourceType = 'Condition' | 'Procedure' | 'DiagnosticReport' | 'Observation' | 'AllergyIntolerance';
|
|
19
|
+
export type VeterinaryCodedResourceType = 'Condition' | 'Procedure' | 'DiagnosticReport' | 'Observation' | 'AllergyIntolerance' | 'Immunization';
|
|
18
20
|
export declare function veterinaryTerminologySystemsFor(resourceType: VeterinaryCodedResourceType, countryCode: string): readonly string[];
|
|
@@ -2,6 +2,8 @@ export const VeterinaryClinicalTerminologySystems = Object.freeze({
|
|
|
2
2
|
Loinc: 'http://loinc.org',
|
|
3
3
|
SnomedCt: 'http://snomed.info/sct',
|
|
4
4
|
Icd10: 'http://hl7.org/fhir/sid/icd-10',
|
|
5
|
+
/** WHO Collaborating Centre ATCvet classification, distinct from human ATC. */
|
|
6
|
+
AtcVet: 'http://www.whocc.no/atcvet',
|
|
5
7
|
});
|
|
6
8
|
/**
|
|
7
9
|
* ISO 3166-1 alpha-2 territories enumerated by the official SNOMED
|
|
@@ -30,5 +32,13 @@ export function veterinaryTerminologySystemsFor(resourceType, countryCode) {
|
|
|
30
32
|
? [VeterinaryClinicalTerminologySystems.SnomedCt, VeterinaryClinicalTerminologySystems.Icd10]
|
|
31
33
|
: [VeterinaryClinicalTerminologySystems.Icd10];
|
|
32
34
|
}
|
|
35
|
+
if (resourceType === 'Immunization') {
|
|
36
|
+
// ATCvet group QI owns veterinary immunological products. SNOMED CT may
|
|
37
|
+
// additionally express a vaccine concept where territorial use permits it.
|
|
38
|
+
// https://atcddd.fhi.no/atcvet/atcvet_index/
|
|
39
|
+
return permitsSnomed
|
|
40
|
+
? [VeterinaryClinicalTerminologySystems.AtcVet, VeterinaryClinicalTerminologySystems.SnomedCt]
|
|
41
|
+
: [VeterinaryClinicalTerminologySystems.AtcVet];
|
|
42
|
+
}
|
|
33
43
|
return permitsSnomed ? [VeterinaryClinicalTerminologySystems.SnomedCt] : [];
|
|
34
44
|
}
|