@medplum/ccda 4.0.2 → 4.0.4
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/dist/cjs/index.cjs +2 -2
- package/dist/cjs/index.cjs.map +3 -3
- package/dist/cjs/index.d.ts +76 -4
- package/dist/esm/index.d.ts +76 -4
- package/dist/esm/index.mjs +2 -2
- package/dist/esm/index.mjs.map +3 -3
- package/package.json +5 -5
package/dist/cjs/index.d.ts
CHANGED
|
@@ -8,6 +8,8 @@ export declare const ADDRESS_USE_MAPPER: EnumMapper<"home" | "work", "HP" | "WP"
|
|
|
8
8
|
|
|
9
9
|
export declare const ADDRESS_USE_VALUE_SET = "http://hl7.org/fhir/ValueSet/address-use";
|
|
10
10
|
|
|
11
|
+
export declare const ADMINISTRATIVE_GENDER_CODE_SYSTEM = "http://hl7.org/fhir/administrative-gender";
|
|
12
|
+
|
|
11
13
|
export declare const ADMINISTRATIVE_GENDER_VALUE_SET = "http://hl7.org/fhir/ValueSet/administrative-gender";
|
|
12
14
|
|
|
13
15
|
export declare const ALLERGIES_SECTION_TEMPLATE_IDS: CcdaTemplateId[];
|
|
@@ -85,6 +87,14 @@ export declare interface CcdaAssignedAuthor {
|
|
|
85
87
|
assignedPerson?: CcdaAssignedPerson;
|
|
86
88
|
addr: CcdaAddr[];
|
|
87
89
|
telecom: CcdaTelecom[];
|
|
90
|
+
assignedAuthoringDevice?: CcdaAssignedAuthoringDevice;
|
|
91
|
+
representedOrganization?: CcdaRepresentedOrganization;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export declare interface CcdaAssignedAuthoringDevice {
|
|
95
|
+
id?: CcdaId[];
|
|
96
|
+
manufacturerModelName?: string;
|
|
97
|
+
softwareName?: string;
|
|
88
98
|
}
|
|
89
99
|
|
|
90
100
|
export declare interface CcdaAssignedCustodian {
|
|
@@ -118,6 +128,7 @@ export declare interface CcdaCode<T extends string = string> {
|
|
|
118
128
|
'@_displayName'?: string;
|
|
119
129
|
originalText?: CcdaText;
|
|
120
130
|
translation?: CcdaCode[];
|
|
131
|
+
'@_nullFlavor'?: 'UNK' | 'NA';
|
|
121
132
|
}
|
|
122
133
|
|
|
123
134
|
export declare interface CcdaConsumable {
|
|
@@ -191,7 +202,7 @@ export declare interface CcdaInnerComponent {
|
|
|
191
202
|
}
|
|
192
203
|
|
|
193
204
|
export declare interface CcdaLanguageCommunication {
|
|
194
|
-
|
|
205
|
+
languageCode?: CcdaCode;
|
|
195
206
|
}
|
|
196
207
|
|
|
197
208
|
export declare interface CcdaList {
|
|
@@ -234,6 +245,7 @@ export declare type CcdaNarrative = Record<string, unknown>;
|
|
|
234
245
|
export declare interface CcdaObservation {
|
|
235
246
|
'@_classCode': string;
|
|
236
247
|
'@_moodCode': string;
|
|
248
|
+
'@_negationInd'?: string;
|
|
237
249
|
templateId: CcdaTemplateId[];
|
|
238
250
|
id?: CcdaId[];
|
|
239
251
|
code?: CcdaCode;
|
|
@@ -296,6 +308,7 @@ export declare interface CcdaPatient {
|
|
|
296
308
|
administrativeGenderCode?: CcdaCode;
|
|
297
309
|
birthTime?: CcdaTimeStamp;
|
|
298
310
|
raceCode?: CcdaCode[];
|
|
311
|
+
'sdtc:raceCode'?: CcdaCode[];
|
|
299
312
|
ethnicGroupCode?: CcdaCode[];
|
|
300
313
|
languageCommunication?: CcdaLanguageCommunication[];
|
|
301
314
|
}
|
|
@@ -399,7 +412,8 @@ export declare interface CcdaSection {
|
|
|
399
412
|
code?: CcdaCode;
|
|
400
413
|
title?: string;
|
|
401
414
|
text?: CcdaNarrative | string;
|
|
402
|
-
|
|
415
|
+
author?: CcdaAuthor[];
|
|
416
|
+
entry?: CcdaEntry[];
|
|
403
417
|
}
|
|
404
418
|
|
|
405
419
|
export declare interface CcdaServiceEvent {
|
|
@@ -431,7 +445,7 @@ export declare interface CcdaSubstanceAdministration {
|
|
|
431
445
|
}
|
|
432
446
|
|
|
433
447
|
export declare interface CcdaTelecom {
|
|
434
|
-
'@_use'?: 'HP' | 'WP';
|
|
448
|
+
'@_use'?: 'HP' | 'WP' | 'MC';
|
|
435
449
|
'@_value'?: string;
|
|
436
450
|
'@_nullFlavor'?: 'UNK';
|
|
437
451
|
}
|
|
@@ -562,8 +576,66 @@ export declare const LANGUAGE_PROFICIENCY_CODE_SYSTEM = "http://terminology.hl7.
|
|
|
562
576
|
|
|
563
577
|
export declare const LANGUAGE_PROFICIENCY_URL = "http://hl7.org/fhir/StructureDefinition/language-proficiency";
|
|
564
578
|
|
|
579
|
+
export declare const LOINC_ADMINISTRATIVE_SEX = "46098-0";
|
|
580
|
+
|
|
581
|
+
export declare const LOINC_ALLERGIES_SECTION = "48765-2";
|
|
582
|
+
|
|
583
|
+
export declare const LOINC_ASSESSMENTS_SECTION = "51848-0";
|
|
584
|
+
|
|
585
|
+
export declare const LOINC_BIRTH_SEX = "76689-9";
|
|
586
|
+
|
|
587
|
+
export declare const LOINC_CARE_TEAM_SECTION = "85847-2";
|
|
588
|
+
|
|
589
|
+
export declare const LOINC_CONDITION = "75323-6";
|
|
590
|
+
|
|
591
|
+
export declare const LOINC_DEVICES_SECTION = "46264-8";
|
|
592
|
+
|
|
593
|
+
export declare const LOINC_ENCOUNTERS_SECTION = "46240-8";
|
|
594
|
+
|
|
595
|
+
export declare const LOINC_GOALS_SECTION = "61146-7";
|
|
596
|
+
|
|
597
|
+
export declare const LOINC_HEALTH_CONCERNS_SECTION = "75310-3";
|
|
598
|
+
|
|
599
|
+
export declare const LOINC_HISTORY_OF_TOBACCO_USE = "11367-0";
|
|
600
|
+
|
|
601
|
+
export declare const LOINC_IMMUNIZATIONS_SECTION = "11369-6";
|
|
602
|
+
|
|
603
|
+
export declare const LOINC_INSURANCE_SECTION = "48768-6";
|
|
604
|
+
|
|
605
|
+
export declare const LOINC_MEDICATION_INSTRUCTIONS = "76662-6";
|
|
606
|
+
|
|
607
|
+
export declare const LOINC_MEDICATIONS_SECTION = "10160-0";
|
|
608
|
+
|
|
609
|
+
export declare const LOINC_MENTAL_STATUS_SECTION = "10190-7";
|
|
610
|
+
|
|
611
|
+
export declare const LOINC_NOTE_DOCUMENT = "34109-9";
|
|
612
|
+
|
|
613
|
+
export declare const LOINC_NOTES_SECTION = "11488-4";
|
|
614
|
+
|
|
615
|
+
export declare const LOINC_OVERALL_GOAL = "58144-7";
|
|
616
|
+
|
|
617
|
+
export declare const LOINC_PATIENT_SUMMARY_DOCUMENT = "60591-5";
|
|
618
|
+
|
|
619
|
+
export declare const LOINC_PLAN_OF_TREATMENT_SECTION = "18776-5";
|
|
620
|
+
|
|
621
|
+
export declare const LOINC_PROBLEMS_SECTION = "11450-4";
|
|
622
|
+
|
|
623
|
+
export declare const LOINC_PROCEDURES_SECTION = "47519-4";
|
|
624
|
+
|
|
625
|
+
export declare const LOINC_REASON_FOR_REFERRAL_SECTION = "42349-1";
|
|
626
|
+
|
|
627
|
+
export declare const LOINC_RESULTS_SECTION = "30954-2";
|
|
628
|
+
|
|
629
|
+
export declare const LOINC_SOCIAL_HISTORY_SECTION = "29762-2";
|
|
630
|
+
|
|
631
|
+
export declare const LOINC_SUMMARY_OF_EPISODE_NOTE = "34133-9";
|
|
632
|
+
|
|
565
633
|
export declare const LOINC_TO_TEMPLATE_IDS: Record<string, CcdaTemplateId[]>;
|
|
566
634
|
|
|
635
|
+
export declare const LOINC_TOBACCO_SMOKING_STATUS = "72166-2";
|
|
636
|
+
|
|
637
|
+
export declare const LOINC_VITAL_SIGNS_SECTION = "8716-3";
|
|
638
|
+
|
|
567
639
|
/**
|
|
568
640
|
* Map the C-CDA system to the FHIR system.
|
|
569
641
|
* @param ccda - The C-CDA system to map.
|
|
@@ -673,7 +745,7 @@ export declare const SOCIAL_HISTORY_SECTION_TEMPLATE_IDS: CcdaTemplateId[];
|
|
|
673
745
|
|
|
674
746
|
export declare const SYSTEM_MAPPER: EnumMapper<string, string>;
|
|
675
747
|
|
|
676
|
-
export declare const TELECOM_USE_MAPPER: EnumMapper<"home" | "work", "HP" | "WP">;
|
|
748
|
+
export declare const TELECOM_USE_MAPPER: EnumMapper<"home" | "work" | "mobile", "HP" | "WP" | "MC">;
|
|
677
749
|
|
|
678
750
|
export declare const UNII_URL = "http://fdasis.nlm.nih.gov";
|
|
679
751
|
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -8,6 +8,8 @@ export declare const ADDRESS_USE_MAPPER: EnumMapper<"home" | "work", "HP" | "WP"
|
|
|
8
8
|
|
|
9
9
|
export declare const ADDRESS_USE_VALUE_SET = "http://hl7.org/fhir/ValueSet/address-use";
|
|
10
10
|
|
|
11
|
+
export declare const ADMINISTRATIVE_GENDER_CODE_SYSTEM = "http://hl7.org/fhir/administrative-gender";
|
|
12
|
+
|
|
11
13
|
export declare const ADMINISTRATIVE_GENDER_VALUE_SET = "http://hl7.org/fhir/ValueSet/administrative-gender";
|
|
12
14
|
|
|
13
15
|
export declare const ALLERGIES_SECTION_TEMPLATE_IDS: CcdaTemplateId[];
|
|
@@ -85,6 +87,14 @@ export declare interface CcdaAssignedAuthor {
|
|
|
85
87
|
assignedPerson?: CcdaAssignedPerson;
|
|
86
88
|
addr: CcdaAddr[];
|
|
87
89
|
telecom: CcdaTelecom[];
|
|
90
|
+
assignedAuthoringDevice?: CcdaAssignedAuthoringDevice;
|
|
91
|
+
representedOrganization?: CcdaRepresentedOrganization;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export declare interface CcdaAssignedAuthoringDevice {
|
|
95
|
+
id?: CcdaId[];
|
|
96
|
+
manufacturerModelName?: string;
|
|
97
|
+
softwareName?: string;
|
|
88
98
|
}
|
|
89
99
|
|
|
90
100
|
export declare interface CcdaAssignedCustodian {
|
|
@@ -118,6 +128,7 @@ export declare interface CcdaCode<T extends string = string> {
|
|
|
118
128
|
'@_displayName'?: string;
|
|
119
129
|
originalText?: CcdaText;
|
|
120
130
|
translation?: CcdaCode[];
|
|
131
|
+
'@_nullFlavor'?: 'UNK' | 'NA';
|
|
121
132
|
}
|
|
122
133
|
|
|
123
134
|
export declare interface CcdaConsumable {
|
|
@@ -191,7 +202,7 @@ export declare interface CcdaInnerComponent {
|
|
|
191
202
|
}
|
|
192
203
|
|
|
193
204
|
export declare interface CcdaLanguageCommunication {
|
|
194
|
-
|
|
205
|
+
languageCode?: CcdaCode;
|
|
195
206
|
}
|
|
196
207
|
|
|
197
208
|
export declare interface CcdaList {
|
|
@@ -234,6 +245,7 @@ export declare type CcdaNarrative = Record<string, unknown>;
|
|
|
234
245
|
export declare interface CcdaObservation {
|
|
235
246
|
'@_classCode': string;
|
|
236
247
|
'@_moodCode': string;
|
|
248
|
+
'@_negationInd'?: string;
|
|
237
249
|
templateId: CcdaTemplateId[];
|
|
238
250
|
id?: CcdaId[];
|
|
239
251
|
code?: CcdaCode;
|
|
@@ -296,6 +308,7 @@ export declare interface CcdaPatient {
|
|
|
296
308
|
administrativeGenderCode?: CcdaCode;
|
|
297
309
|
birthTime?: CcdaTimeStamp;
|
|
298
310
|
raceCode?: CcdaCode[];
|
|
311
|
+
'sdtc:raceCode'?: CcdaCode[];
|
|
299
312
|
ethnicGroupCode?: CcdaCode[];
|
|
300
313
|
languageCommunication?: CcdaLanguageCommunication[];
|
|
301
314
|
}
|
|
@@ -399,7 +412,8 @@ export declare interface CcdaSection {
|
|
|
399
412
|
code?: CcdaCode;
|
|
400
413
|
title?: string;
|
|
401
414
|
text?: CcdaNarrative | string;
|
|
402
|
-
|
|
415
|
+
author?: CcdaAuthor[];
|
|
416
|
+
entry?: CcdaEntry[];
|
|
403
417
|
}
|
|
404
418
|
|
|
405
419
|
export declare interface CcdaServiceEvent {
|
|
@@ -431,7 +445,7 @@ export declare interface CcdaSubstanceAdministration {
|
|
|
431
445
|
}
|
|
432
446
|
|
|
433
447
|
export declare interface CcdaTelecom {
|
|
434
|
-
'@_use'?: 'HP' | 'WP';
|
|
448
|
+
'@_use'?: 'HP' | 'WP' | 'MC';
|
|
435
449
|
'@_value'?: string;
|
|
436
450
|
'@_nullFlavor'?: 'UNK';
|
|
437
451
|
}
|
|
@@ -562,8 +576,66 @@ export declare const LANGUAGE_PROFICIENCY_CODE_SYSTEM = "http://terminology.hl7.
|
|
|
562
576
|
|
|
563
577
|
export declare const LANGUAGE_PROFICIENCY_URL = "http://hl7.org/fhir/StructureDefinition/language-proficiency";
|
|
564
578
|
|
|
579
|
+
export declare const LOINC_ADMINISTRATIVE_SEX = "46098-0";
|
|
580
|
+
|
|
581
|
+
export declare const LOINC_ALLERGIES_SECTION = "48765-2";
|
|
582
|
+
|
|
583
|
+
export declare const LOINC_ASSESSMENTS_SECTION = "51848-0";
|
|
584
|
+
|
|
585
|
+
export declare const LOINC_BIRTH_SEX = "76689-9";
|
|
586
|
+
|
|
587
|
+
export declare const LOINC_CARE_TEAM_SECTION = "85847-2";
|
|
588
|
+
|
|
589
|
+
export declare const LOINC_CONDITION = "75323-6";
|
|
590
|
+
|
|
591
|
+
export declare const LOINC_DEVICES_SECTION = "46264-8";
|
|
592
|
+
|
|
593
|
+
export declare const LOINC_ENCOUNTERS_SECTION = "46240-8";
|
|
594
|
+
|
|
595
|
+
export declare const LOINC_GOALS_SECTION = "61146-7";
|
|
596
|
+
|
|
597
|
+
export declare const LOINC_HEALTH_CONCERNS_SECTION = "75310-3";
|
|
598
|
+
|
|
599
|
+
export declare const LOINC_HISTORY_OF_TOBACCO_USE = "11367-0";
|
|
600
|
+
|
|
601
|
+
export declare const LOINC_IMMUNIZATIONS_SECTION = "11369-6";
|
|
602
|
+
|
|
603
|
+
export declare const LOINC_INSURANCE_SECTION = "48768-6";
|
|
604
|
+
|
|
605
|
+
export declare const LOINC_MEDICATION_INSTRUCTIONS = "76662-6";
|
|
606
|
+
|
|
607
|
+
export declare const LOINC_MEDICATIONS_SECTION = "10160-0";
|
|
608
|
+
|
|
609
|
+
export declare const LOINC_MENTAL_STATUS_SECTION = "10190-7";
|
|
610
|
+
|
|
611
|
+
export declare const LOINC_NOTE_DOCUMENT = "34109-9";
|
|
612
|
+
|
|
613
|
+
export declare const LOINC_NOTES_SECTION = "11488-4";
|
|
614
|
+
|
|
615
|
+
export declare const LOINC_OVERALL_GOAL = "58144-7";
|
|
616
|
+
|
|
617
|
+
export declare const LOINC_PATIENT_SUMMARY_DOCUMENT = "60591-5";
|
|
618
|
+
|
|
619
|
+
export declare const LOINC_PLAN_OF_TREATMENT_SECTION = "18776-5";
|
|
620
|
+
|
|
621
|
+
export declare const LOINC_PROBLEMS_SECTION = "11450-4";
|
|
622
|
+
|
|
623
|
+
export declare const LOINC_PROCEDURES_SECTION = "47519-4";
|
|
624
|
+
|
|
625
|
+
export declare const LOINC_REASON_FOR_REFERRAL_SECTION = "42349-1";
|
|
626
|
+
|
|
627
|
+
export declare const LOINC_RESULTS_SECTION = "30954-2";
|
|
628
|
+
|
|
629
|
+
export declare const LOINC_SOCIAL_HISTORY_SECTION = "29762-2";
|
|
630
|
+
|
|
631
|
+
export declare const LOINC_SUMMARY_OF_EPISODE_NOTE = "34133-9";
|
|
632
|
+
|
|
565
633
|
export declare const LOINC_TO_TEMPLATE_IDS: Record<string, CcdaTemplateId[]>;
|
|
566
634
|
|
|
635
|
+
export declare const LOINC_TOBACCO_SMOKING_STATUS = "72166-2";
|
|
636
|
+
|
|
637
|
+
export declare const LOINC_VITAL_SIGNS_SECTION = "8716-3";
|
|
638
|
+
|
|
567
639
|
/**
|
|
568
640
|
* Map the C-CDA system to the FHIR system.
|
|
569
641
|
* @param ccda - The C-CDA system to map.
|
|
@@ -673,7 +745,7 @@ export declare const SOCIAL_HISTORY_SECTION_TEMPLATE_IDS: CcdaTemplateId[];
|
|
|
673
745
|
|
|
674
746
|
export declare const SYSTEM_MAPPER: EnumMapper<string, string>;
|
|
675
747
|
|
|
676
|
-
export declare const TELECOM_USE_MAPPER: EnumMapper<"home" | "work", "HP" | "WP">;
|
|
748
|
+
export declare const TELECOM_USE_MAPPER: EnumMapper<"home" | "work" | "mobile", "HP" | "WP" | "MC">;
|
|
677
749
|
|
|
678
750
|
export declare const UNII_URL = "http://fdasis.nlm.nih.gov";
|
|
679
751
|
|