@medplum/ccda 3.2.33

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.
@@ -0,0 +1,667 @@
1
+ import { Bundle } from '@medplum/fhirtypes';
2
+ import { CodeableConcept } from '@medplum/fhirtypes';
3
+
4
+ export declare const ACT_CODE_SYSTEM = "http://terminology.hl7.org/CodeSystem/v3-ActCode";
5
+
6
+ export declare const ADDRESS_USE_MAPPER: EnumMapper<"home" | "work", "HP" | "WP">;
7
+
8
+ export declare const ADDRESS_USE_VALUE_SET = "http://hl7.org/fhir/ValueSet/address-use";
9
+
10
+ export declare const ADMINISTRATIVE_GENDER_VALUE_SET = "http://hl7.org/fhir/ValueSet/administrative-gender";
11
+
12
+ export declare const ALLERGIES_SECTION_TEMPLATE_IDS: CcdaTemplateId[];
13
+
14
+ export declare const ALLERGY_CLINICAL_CODE_SYSTEM = "http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical";
15
+
16
+ export declare const ALLERGY_SEVERITY_MAPPER: EnumMapper<"moderate" | "mild" | "severe", string>;
17
+
18
+ export declare const ALLERGY_STATUS_MAPPER: EnumMapper<string, string>;
19
+
20
+ export declare const ALLERGY_VERIFICATION_CODE_SYSTEM = "http://terminology.hl7.org/CodeSystem/allergyintolerance-verification";
21
+
22
+ export declare const ASSESSMENTS_SECTION_TEMPLATE_IDS: CcdaTemplateId[];
23
+
24
+ export declare const CARE_TEAM_SECTION_TEMPLATE_IDS: CcdaTemplateId[];
25
+
26
+ export declare interface Ccda {
27
+ id?: CcdaId[];
28
+ realmCode: CcdaRealmCode;
29
+ typeId: CcdaId;
30
+ templateId: CcdaTemplateId[];
31
+ languageCode?: CcdaCode;
32
+ recordTarget?: CcdaRecordTarget[];
33
+ author?: CcdaAuthor[];
34
+ effectiveTime?: CcdaEffectiveTime[];
35
+ custodian?: CcdaCustodian;
36
+ documentationOf?: CcdaDocumentationOf;
37
+ title?: string;
38
+ code?: CcdaCode;
39
+ confidentialityCode?: CcdaCode;
40
+ component?: CcdaOuterComponent;
41
+ }
42
+
43
+ export declare const CCDA_NARRATIVE_REFERENCE_URL = "https://medplum.com/fhir/StructureDefinition/ccda-narrative-reference";
44
+
45
+ export declare const CCDA_TEMPLATE_CODE_SYSTEM = "http://hl7.org/cda/template";
46
+
47
+ export declare const CCDA_TEMPLATE_IDS: ({
48
+ '@_root': string;
49
+ '@_extension': string;
50
+ } | {
51
+ '@_root': string;
52
+ '@_extension'?: undefined;
53
+ })[];
54
+
55
+ export declare interface CcdaAct {
56
+ '@_classCode': string;
57
+ '@_moodCode': string;
58
+ templateId: CcdaTemplateId[];
59
+ id?: CcdaId[];
60
+ code: CcdaCode;
61
+ statusCode: CcdaStatusCode;
62
+ effectiveTime?: CcdaEffectiveTime[];
63
+ entryRelationship?: CcdaEntryRelationship[];
64
+ author?: CcdaAuthor[];
65
+ text?: CcdaText;
66
+ performer?: CcdaPerformer[];
67
+ }
68
+
69
+ export declare interface CcdaAddr {
70
+ '@_use'?: 'HP' | 'WP';
71
+ '@_nullFlavor'?: 'UNK';
72
+ streetAddressLine?: string[];
73
+ city?: string;
74
+ state?: string;
75
+ postalCode?: string;
76
+ country?: string;
77
+ }
78
+
79
+ export declare interface CcdaAssignedAuthor {
80
+ id?: CcdaId[];
81
+ code?: CcdaCode;
82
+ assignedPerson?: CcdaAssignedPerson;
83
+ addr: CcdaAddr[];
84
+ telecom: CcdaTelecom[];
85
+ }
86
+
87
+ export declare interface CcdaAssignedCustodian {
88
+ representedCustodianOrganization: CcdaRepresentedCustodianOrganization;
89
+ }
90
+
91
+ export declare interface CcdaAssignedEntity {
92
+ id: CcdaId[];
93
+ addr: CcdaAddr[];
94
+ telecom: CcdaTelecom[];
95
+ assignedPerson?: CcdaAssignedPerson;
96
+ representedOrganization?: CcdaRepresentedOrganization;
97
+ }
98
+
99
+ export declare interface CcdaAssignedPerson {
100
+ id?: CcdaId[];
101
+ name?: CcdaName[];
102
+ }
103
+
104
+ export declare interface CcdaAuthor {
105
+ templateId: CcdaTemplateId[];
106
+ time?: CcdaTimeStamp;
107
+ assignedAuthor?: CcdaAssignedAuthor;
108
+ }
109
+
110
+ export declare interface CcdaCode {
111
+ '@_xsi:type'?: 'CD' | 'CE';
112
+ '@_code'?: string;
113
+ '@_codeSystem'?: string;
114
+ '@_codeSystemName'?: string;
115
+ '@_displayName'?: string;
116
+ originalText?: CcdaText;
117
+ }
118
+
119
+ export declare interface CcdaConsumable {
120
+ '@_typeCode'?: string;
121
+ manufacturedProduct: CcdaManufacturedProduct[];
122
+ }
123
+
124
+ export declare interface CcdaCustodian {
125
+ assignedCustodian: CcdaAssignedCustodian;
126
+ }
127
+
128
+ export declare interface CcdaDocumentationOf {
129
+ serviceEvent: CcdaServiceEvent;
130
+ }
131
+
132
+ export declare interface CcdaEffectiveTime {
133
+ '@_xsi:type'?: 'IVL_TS' | 'TS';
134
+ '@_institutionSpecified'?: string;
135
+ '@_operator'?: string;
136
+ '@_value'?: string;
137
+ period?: CcdaPeriod;
138
+ event?: CcdaEvent;
139
+ low?: CcdaTimeStamp;
140
+ high?: CcdaTimeStamp;
141
+ }
142
+
143
+ export declare interface CcdaEncounter {
144
+ '@_classCode': string;
145
+ '@_moodCode': string;
146
+ templateId: CcdaTemplateId[];
147
+ id?: CcdaId[];
148
+ code?: CcdaCode;
149
+ statusCode?: CcdaStatusCode<'active' | 'completed' | 'aborted' | 'cancelled' | 'unknown'>;
150
+ effectiveTime?: CcdaEffectiveTime[];
151
+ performer?: CcdaPerformer[];
152
+ participant?: CcdaParticipant[];
153
+ entryRelationship?: CcdaEntryRelationship[];
154
+ text?: CcdaText;
155
+ }
156
+
157
+ export declare interface CcdaEntry {
158
+ '@_typeCode'?: string;
159
+ act?: CcdaAct[];
160
+ organizer?: CcdaOrganizer[];
161
+ observation?: CcdaObservation[];
162
+ substanceAdministration?: CcdaSubstanceAdministration[];
163
+ encounter?: CcdaEncounter[];
164
+ procedure?: CcdaProcedure[];
165
+ }
166
+
167
+ export declare interface CcdaEntryRelationship {
168
+ '@_typeCode': string;
169
+ '@_inversionInd'?: string;
170
+ observation?: CcdaObservation[];
171
+ act?: CcdaAct[];
172
+ substanceAdministration?: CcdaSubstanceAdministration[];
173
+ }
174
+
175
+ export declare interface CcdaEvent {
176
+ '@_code': string;
177
+ }
178
+
179
+ export declare interface CcdaId {
180
+ '@_root'?: string;
181
+ '@_extension'?: string;
182
+ }
183
+
184
+ export declare interface CcdaInnerComponent {
185
+ section: CcdaSection[];
186
+ }
187
+
188
+ export declare interface CcdaLanguageCommunication {
189
+ '@_languageCode'?: string;
190
+ }
191
+
192
+ export declare interface CcdaList {
193
+ item: string[];
194
+ }
195
+
196
+ export declare interface CcdaManufacturedLabeledDrug {
197
+ '@_nullFlavor': string;
198
+ }
199
+
200
+ export declare interface CcdaManufacturedMaterial {
201
+ code: CcdaCode[];
202
+ lotNumberText?: string[];
203
+ }
204
+
205
+ export declare interface CcdaManufacturedProduct {
206
+ '@_classCode'?: string;
207
+ templateId?: CcdaTemplateId[];
208
+ manufacturedMaterial?: CcdaManufacturedMaterial[];
209
+ manufacturerOrganization?: CcdaManufacturerOrganization[];
210
+ manufacturedLabeledDrug?: CcdaManufacturedLabeledDrug[];
211
+ }
212
+
213
+ export declare interface CcdaManufacturerOrganization {
214
+ '@_classCode'?: string;
215
+ id?: CcdaId[];
216
+ name: string[];
217
+ }
218
+
219
+ export declare interface CcdaName {
220
+ '@_use'?: 'ANON' | 'C' | 'L' | 'M' | 'N' | 'TEMP';
221
+ family?: string;
222
+ given?: string[];
223
+ suffix?: string[];
224
+ prefix?: string[];
225
+ }
226
+
227
+ export declare type CcdaNarrative = Record<string, unknown>;
228
+
229
+ export declare interface CcdaObservation {
230
+ '@_classCode': string;
231
+ '@_moodCode': string;
232
+ templateId: CcdaTemplateId[];
233
+ id?: CcdaId[];
234
+ code?: CcdaCode;
235
+ statusCode: CcdaStatusCode;
236
+ effectiveTime?: CcdaEffectiveTime[];
237
+ value?: CcdaValue;
238
+ participant?: CcdaParticipant[];
239
+ entryRelationship?: CcdaEntryRelationship[];
240
+ author?: CcdaAuthor[];
241
+ text?: CcdaText;
242
+ referenceRange?: CcdaReferenceRange[];
243
+ }
244
+
245
+ export declare interface CcdaObservationRange {
246
+ text?: CcdaText;
247
+ value?: CcdaValue;
248
+ }
249
+
250
+ export declare interface CcdaOrganizer {
251
+ '@_classCode': 'CLUSTER';
252
+ '@_moodCode': 'EVN';
253
+ templateId: CcdaTemplateId[];
254
+ id: CcdaId[];
255
+ code?: CcdaCode;
256
+ statusCode?: CcdaStatusCode;
257
+ effectiveTime?: CcdaEffectiveTime[];
258
+ component: CcdaOrganizerComponent[];
259
+ }
260
+
261
+ export declare interface CcdaOrganizerComponent {
262
+ act?: CcdaAct[];
263
+ observation?: CcdaObservation[];
264
+ }
265
+
266
+ export declare interface CcdaOuterComponent {
267
+ structuredBody: CcdaStructuredBody;
268
+ }
269
+
270
+ export declare interface CcdaParticipant {
271
+ '@_classCode'?: string;
272
+ '@_typeCode'?: string;
273
+ participantRole?: CcdaParticipantRole;
274
+ }
275
+
276
+ export declare interface CcdaParticipantRole {
277
+ '@_classCode'?: string;
278
+ '@_typeCode'?: string;
279
+ playingEntity?: CcdaPlayingEntity;
280
+ }
281
+
282
+ export declare interface CcdaPatient {
283
+ name?: CcdaName[];
284
+ administrativeGenderCode?: CcdaCode;
285
+ birthTime?: CcdaTimeStamp;
286
+ raceCode?: CcdaCode[];
287
+ ethnicGroupCode?: CcdaCode[];
288
+ languageCommunication?: CcdaLanguageCommunication[];
289
+ }
290
+
291
+ export declare interface CcdaPatientRole {
292
+ id?: CcdaId[];
293
+ patient: CcdaPatient;
294
+ addr: CcdaAddr[];
295
+ telecom: CcdaTelecom[];
296
+ }
297
+
298
+ export declare interface CcdaPerformer {
299
+ '@_typeCode'?: string;
300
+ assignedEntity: CcdaAssignedEntity;
301
+ functionCode?: CcdaCode;
302
+ }
303
+
304
+ export declare interface CcdaPeriod {
305
+ '@_xsi:type'?: 'PIVL_TS';
306
+ '@_value': string;
307
+ '@_unit': string;
308
+ }
309
+
310
+ export declare interface CcdaPlayingEntity {
311
+ '@_classCode'?: string;
312
+ '@_typeCode'?: string;
313
+ code?: CcdaCode;
314
+ }
315
+
316
+ export declare interface CcdaProcedure {
317
+ '@_classCode': string;
318
+ '@_moodCode': string;
319
+ templateId: CcdaTemplateId[];
320
+ id?: CcdaId[];
321
+ code: CcdaCode;
322
+ statusCode: CcdaStatusCode<'completed' | 'aborted' | 'cancelled' | 'new' | 'unknown'>;
323
+ effectiveTime?: CcdaEffectiveTime[];
324
+ methodCode?: CcdaCode;
325
+ targetSiteCode?: CcdaCode;
326
+ text?: CcdaText;
327
+ }
328
+
329
+ export declare interface CcdaQuantity {
330
+ '@_xsi:type'?: 'PQ' | 'CO';
331
+ '@_value'?: string;
332
+ '@_unit'?: string;
333
+ }
334
+
335
+ export declare interface CcdaRealmCode {
336
+ '@_code': string;
337
+ }
338
+
339
+ export declare interface CcdaRecordTarget {
340
+ patientRole: CcdaPatientRole;
341
+ }
342
+
343
+ export declare interface CcdaReference {
344
+ '@_xsi:type'?: 'ED';
345
+ '@_value'?: string;
346
+ reference?: CcdaReference;
347
+ }
348
+
349
+ export declare interface CcdaReferenceRange {
350
+ observationRange: CcdaObservationRange;
351
+ }
352
+
353
+ export declare interface CcdaRepresentedCustodianOrganization {
354
+ id?: CcdaId[];
355
+ name?: string[];
356
+ telecom?: CcdaTelecom[];
357
+ addr?: CcdaAddr[];
358
+ }
359
+
360
+ export declare interface CcdaRepresentedOrganization {
361
+ id?: CcdaId[];
362
+ name?: string[];
363
+ telecom?: CcdaTelecom[];
364
+ addr?: CcdaAddr[];
365
+ }
366
+
367
+ export declare interface CcdaSection {
368
+ '@_nullFlavor'?: 'NI';
369
+ templateId: CcdaTemplateId[];
370
+ code?: CcdaCode;
371
+ title?: string;
372
+ text?: CcdaNarrative | string;
373
+ entry: CcdaEntry[];
374
+ }
375
+
376
+ export declare interface CcdaServiceEvent {
377
+ '@_classCode': string;
378
+ code?: CcdaCode;
379
+ effectiveTime?: CcdaEffectiveTime[];
380
+ }
381
+
382
+ export declare interface CcdaStatusCode<T extends string = string> {
383
+ '@_code': T;
384
+ }
385
+
386
+ export declare interface CcdaStructuredBody {
387
+ component: CcdaInnerComponent[];
388
+ }
389
+
390
+ export declare interface CcdaSubstanceAdministration {
391
+ '@_classCode': string;
392
+ '@_moodCode': string;
393
+ '@_negationInd'?: string;
394
+ templateId: CcdaTemplateId[];
395
+ id?: CcdaId[];
396
+ text?: CcdaText;
397
+ statusCode?: CcdaStatusCode<'active' | 'completed' | 'aborted' | 'cancelled'>;
398
+ effectiveTime?: CcdaEffectiveTime[];
399
+ routeCode?: CcdaCode;
400
+ doseQuantity?: CcdaQuantity;
401
+ consumable?: CcdaConsumable;
402
+ author?: CcdaAuthor[];
403
+ entryRelationship?: CcdaEntryRelationship[];
404
+ code?: CcdaCode;
405
+ performer?: CcdaPerformer[];
406
+ }
407
+
408
+ export declare interface CcdaTelecom {
409
+ '@_use'?: 'HP' | 'WP';
410
+ '@_value'?: string;
411
+ '@_nullFlavor'?: 'UNK';
412
+ }
413
+
414
+ export declare interface CcdaTemplateId {
415
+ '@_root': string;
416
+ '@_extension'?: string;
417
+ }
418
+
419
+ export declare interface CcdaText {
420
+ '@_xsi:type'?: 'ST';
421
+ reference?: CcdaReference;
422
+ '#text'?: string;
423
+ }
424
+
425
+ export declare interface CcdaTimeStamp {
426
+ '@_value'?: string;
427
+ '@_nullFlavor'?: string;
428
+ }
429
+
430
+ export declare type CcdaValue = CcdaCode | CcdaText | CcdaQuantity | CcdaReference;
431
+
432
+ export declare const CLINICAL_CONDITION_CODE_SYSTEM = "http://terminology.hl7.org/CodeSystem/condition-clinical";
433
+
434
+ export declare const CLINICAL_NOTES_SECTION_TEMPLATE_IDS: CcdaTemplateId[];
435
+
436
+ export declare const CONDITION_CATEGORY_CODE_SYSTEM = "http://terminology.hl7.org/CodeSystem/condition-category";
437
+
438
+ export declare const CONDITION_VER_STATUS_CODE_SYSTEM = "http://terminology.hl7.org/CodeSystem/condition-ver-status";
439
+
440
+ export declare const CONDITION_VERIFICATION_CODE_SYSTEM = "http://terminology.hl7.org/CodeSystem/condition-verification";
441
+
442
+ export declare const CONFIDENTIALITY_CODE_SYSTEM = "http://terminology.hl7.org/CodeSystem/v3-Confidentiality";
443
+
444
+ export declare const CONFIDENTIALITY_MAPPER: EnumMapper<"L" | "M" | "N" | "U" | "R" | "V", "L" | "M" | "N" | "U" | "R" | "V">;
445
+
446
+ export declare const CONTACT_ENTITY_USE_VALUE_SET = "http://hl7.org/fhir/ValueSet/contactentity-use";
447
+
448
+ /**
449
+ * Converts C-CDA documents to FHIR resources
450
+ * Following Medplum TypeScript rules:
451
+ * - Generates new FHIR resource IDs
452
+ * - Preserves original C-CDA IDs as identifiers
453
+ * - Adds proper metadata and timestamps
454
+ *
455
+ * @param ccda - The C-CDA document to convert
456
+ * @returns The converted FHIR resources
457
+ */
458
+ export declare function convertCcdaToFhir(ccda: Ccda): Bundle;
459
+
460
+ export declare function convertCcdaToXml(ccda: Ccda): string;
461
+
462
+ /**
463
+ * Convert a FHIR bundle to a C-CDA document.
464
+ * @param bundle - The FHIR bundle to convert.
465
+ * @returns The C-CDA document.
466
+ */
467
+ export declare function convertFhirToCcda(bundle: Bundle): Ccda;
468
+
469
+ export declare function convertToCompactXml(obj: any): string;
470
+
471
+ export declare function convertXmlToCcda(xml: string): Ccda;
472
+
473
+ export declare const CVX_URL = "http://nucc.org/cvx";
474
+
475
+ export declare const DEVICES_SECTION_TEMPLATE_IDS: CcdaTemplateId[];
476
+
477
+ export declare const DIAGNOSIS_ROLE_CODE_SYSTEM = "http://terminology.hl7.org/CodeSystem/diagnosis-role";
478
+
479
+ export declare const ENCOUNTER_STATUS_MAPPER: EnumMapper<"cancelled" | "unknown" | "in-progress" | "finished", "active" | "completed" | "aborted" | "cancelled" | "unknown">;
480
+
481
+ export declare const ENCOUNTERS_SECTION_TEMPLATE_IDS: CcdaTemplateId[];
482
+
483
+ export declare interface EnumEntry<TFhirValue extends string = string, TCcdaValue extends string = string> {
484
+ fhirValue: TFhirValue;
485
+ ccdaValue: TCcdaValue;
486
+ displayName: string;
487
+ }
488
+
489
+ export declare class EnumMapper<TFhirValue extends string, TCcdaValue extends string> {
490
+ readonly systemName: string;
491
+ readonly ccdaSystemOid: string;
492
+ readonly fhirSystemUrl: string;
493
+ readonly entries: EnumEntry<TFhirValue, TCcdaValue>[];
494
+ readonly ccdaToFhirMap: Record<TCcdaValue, EnumEntry<TFhirValue, TCcdaValue>>;
495
+ readonly fhirToCcdaMap: Record<TFhirValue, EnumEntry<TFhirValue, TCcdaValue>>;
496
+ constructor(systemName: string, ccdaSystemOid: string, fhirSystemUrl: string, entries: EnumEntry<TFhirValue, TCcdaValue>[]);
497
+ getEntryByFhir(fhir: TFhirValue): EnumEntry<TFhirValue, TCcdaValue> | undefined;
498
+ mapCcdaToFhir(ccda: TCcdaValue): TFhirValue | undefined;
499
+ mapCcdaToFhirWithDefault(ccda: TCcdaValue | undefined, defaultValue: TFhirValue): TFhirValue;
500
+ mapFhirToCcdaWithDefault(fhir: TFhirValue | undefined, defaultValue: TCcdaValue): TCcdaValue;
501
+ mapCcdaToFhirCodeableConcept(ccda: TCcdaValue): CodeableConcept | undefined;
502
+ mapFhirToCcda(fhir: TFhirValue | undefined): TCcdaValue | undefined;
503
+ mapFhirToCcdaCode(fhir: TFhirValue | undefined): CcdaCode | undefined;
504
+ }
505
+
506
+ export declare const FHIR_CVX_URL = "http://hl7.org/fhir/sid/cvx";
507
+
508
+ export declare const GENDER_MAPPER: EnumMapper<"unknown" | "female" | "male" | "other", "M" | "F" | "UN">;
509
+
510
+ export declare const GOALS_SECTION_TEMPLATE_IDS: CcdaTemplateId[];
511
+
512
+ export declare const HEALTH_CONCERNS_SECTION_TEMPLATE_IDS: CcdaTemplateId[];
513
+
514
+ /**
515
+ * Every non-HTTPS URL will be flagged by our security tools as a potential vulnerability.
516
+ * We therefore use one constant to minimize the number of false positives.
517
+ * All of these URLs are used as identifiers, not as web links.
518
+ */
519
+ export declare const HTTP = "http:";
520
+
521
+ export declare const HUMAN_NAME_USE_MAPPER: EnumMapper<"usual" | "official" | "temp" | "nickname" | "anonymous" | "maiden" | "old", "ANON" | "C" | "L" | "M" | "N" | "TEMP">;
522
+
523
+ export declare const IMMUNIZATIONS_SECTION_TEMPLATE_IDS: CcdaTemplateId[];
524
+
525
+ export declare const INSURANCE_SECTION_TEMPLATE_IDS: CcdaTemplateId[];
526
+
527
+ export declare const LAB_TESTS_SECTION_TEMPLATE_IDS: CcdaTemplateId[];
528
+
529
+ export declare const LANGUAGE_MODE_CODE_SYSTEM = "http://terminology.hl7.org/CodeSystem/v3-LanguageAbilityMode";
530
+
531
+ export declare const LANGUAGE_MODE_URL = "http://hl7.org/fhir/StructureDefinition/language-mode";
532
+
533
+ export declare const LANGUAGE_PROFICIENCY_CODE_SYSTEM = "http://terminology.hl7.org/CodeSystem/v3-LanguageAbilityProficiency";
534
+
535
+ export declare const LANGUAGE_PROFICIENCY_URL = "http://hl7.org/fhir/StructureDefinition/language-proficiency";
536
+
537
+ export declare const LOINC_TO_TEMPLATE_IDS: Record<string, CcdaTemplateId[]>;
538
+
539
+ /**
540
+ * Map the C-CDA system to the FHIR system.
541
+ * @param ccda - The C-CDA system to map.
542
+ * @returns The FHIR system.
543
+ */
544
+ export declare function mapCcdaSystemToFhir(ccda: string | undefined): string | undefined;
545
+
546
+ /**
547
+ * Map the C-CDA date to the FHIR date.
548
+ * @param date - The C-CDA date.
549
+ * @returns The FHIR date.
550
+ */
551
+ export declare function mapCcdaToFhirDate(date: string | undefined): string | undefined;
552
+
553
+ /**
554
+ * Map the C-CDA date time to the FHIR date time.
555
+ * @param dateTime - The C-CDA date time.
556
+ * @returns The FHIR date time.
557
+ */
558
+ export declare function mapCcdaToFhirDateTime(dateTime: string | undefined): string | undefined;
559
+
560
+ /**
561
+ * Map the codeable concept to the C-CDA code.
562
+ * @param codeableConcept - The codeable concept to map.
563
+ * @returns The C-CDA code.
564
+ */
565
+ export declare function mapCodeableConceptToCcdaCode(codeableConcept: CodeableConcept | undefined): CcdaCode | undefined;
566
+
567
+ /**
568
+ * Map the codeable concept to the C-CDA value.
569
+ * @param codeableConcept - The codeable concept to map.
570
+ * @returns The C-CDA value.
571
+ */
572
+ export declare function mapCodeableConceptToCcdaValue(codeableConcept: CodeableConcept | undefined): CcdaValue | undefined;
573
+
574
+ /**
575
+ * Map the FHIR system to the C-CDA system.
576
+ * @param system - The system to map.
577
+ * @returns The C-CDA system.
578
+ */
579
+ export declare function mapFhirSystemToCcda(system: string | undefined): string | undefined;
580
+
581
+ /**
582
+ * Map the FHIR date to the C-CDA date.
583
+ * @param date - The FHIR date.
584
+ * @returns The C-CDA date.
585
+ */
586
+ export declare function mapFhirToCcdaDate(date: string | undefined): string | undefined;
587
+
588
+ /**
589
+ * Map the FHIR date time to the C-CDA date time.
590
+ * @param dateTime - The FHIR date time.
591
+ * @returns The C-CDA date time.
592
+ */
593
+ export declare function mapFhirToCcdaDateTime(dateTime: string | undefined): string | undefined;
594
+
595
+ export declare const MEDICATION_REQUEST_STATUS_VALUE_SET = "http://hl7.org/fhir/ValueSet/medicationrequest-status";
596
+
597
+ export declare const MEDICATION_STATUS_MAPPER: EnumMapper<Required<"active" | "completed" | "cancelled" | "unknown" | "entered-in-error" | "stopped" | "on-hold" | "draft">, "active" | "completed" | "aborted" | "cancelled">;
598
+
599
+ export declare const MEDICATIONS_SECTION_TEMPLATE_IDS: CcdaTemplateId[];
600
+
601
+ export declare const MENTAL_STATUS_SECTION_TEMPLATE_IDS: CcdaTemplateId[];
602
+
603
+ export declare const NAME_USE_VALUE_SET = "http://hl7.org/fhir/ValueSet/name-use";
604
+
605
+ export declare const NCI_THESAURUS_URL = "http://ncithesaurus-stage.nci.nih.gov";
606
+
607
+ export declare const NDFRT_URL = "http://hl7.org/fhir/ndfrt";
608
+
609
+ export declare const NUCC_TAXONOMY_URL = "http://nucc.org/provider-taxonomy";
610
+
611
+ export declare const OBSERVATION_CATEGORY_CODE_SYSTEM = "http://terminology.hl7.org/CodeSystem/observation-category";
612
+
613
+ export declare const OBSERVATION_CATEGORY_MAPPER: EnumMapper<string, string>;
614
+
615
+ export declare function parseXml(xml: string): any;
616
+
617
+ export declare const PARTICIPATION_CODE_SYSTEM = "http://terminology.hl7.org/CodeSystem/v3-ParticipationType";
618
+
619
+ export declare const PATIENT_NOTES_SECTION_TEMPLATE_IDS: CcdaTemplateId[];
620
+
621
+ export declare const PLAN_OF_TREATMENT_SECTION_TEMPLATE_IDS: CcdaTemplateId[];
622
+
623
+ export declare const PROBLEM_STATUS_MAPPER: EnumMapper<string, string>;
624
+
625
+ export declare const PROBLEMS_SECTION_TEMPLATE_IDS: CcdaTemplateId[];
626
+
627
+ export declare const PROCEDURE_STATUS_MAPPER: EnumMapper<"completed" | "unknown" | "stopped" | "not-done", "completed" | "aborted" | "cancelled" | "unknown" | "new">;
628
+
629
+ export declare const PROCEDURES_SECTION_TEMPLATE_IDS: CcdaTemplateId[];
630
+
631
+ export declare const RACE_CODE_SYSTEM = "http://terminology.hl7.org/CodeSystem/v3-Race";
632
+
633
+ export declare const REASON_FOR_REFERRAL_SECTION_TEMPLATE_IDS: CcdaTemplateId[];
634
+
635
+ export declare const RESULTS_SECTION_TEMPLATE_IDS: CcdaTemplateId[];
636
+
637
+ export declare const SOCIAL_HISTORY_SECTION_TEMPLATE_IDS: CcdaTemplateId[];
638
+
639
+ export declare const SYSTEM_MAPPER: EnumMapper<string, string>;
640
+
641
+ export declare const TELECOM_USE_MAPPER: EnumMapper<"home" | "work", "HP" | "WP">;
642
+
643
+ export declare const UNII_URL = "http://fdasis.nlm.nih.gov";
644
+
645
+ export declare const US_CORE_CONDITION_URL = "http://hl7.org/fhir/us/core/StructureDefinition/us-core-condition";
646
+
647
+ export declare const US_CORE_ETHNICITY_URL = "http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity";
648
+
649
+ export declare const US_CORE_MEDICATION_REQUEST_URL = "http://hl7.org/fhir/us/core/StructureDefinition/us-core-medicationrequest";
650
+
651
+ export declare const US_CORE_PATIENT_URL = "http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient";
652
+
653
+ export declare const US_CORE_RACE_URL = "http://hl7.org/fhir/us/core/StructureDefinition/us-core-race";
654
+
655
+ export declare const US_DRIVER_LICENSE_URL = "http://hl7.org/fhir/sid/us-dln";
656
+
657
+ export declare const US_NPI_URL = "http://hl7.org/fhir/sid/us-npi";
658
+
659
+ export declare const US_SSN_URL = "http://hl7.org/fhir/sid/us-ssn";
660
+
661
+ export declare const VA_MEDRT_URL = "http://va.gov/terminology/medrt";
662
+
663
+ export declare const VITAL_SIGNS_SECTION_TEMPLATE_IDS: CcdaTemplateId[];
664
+
665
+ export declare const XSI_URL = "http://www.w3.org/2001/XMLSchema-instance";
666
+
667
+ export { }
@@ -0,0 +1 @@
1
+ {"type": "commonjs"}