@medplum/ccda 4.0.0 → 4.0.2

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.
@@ -1,5 +1,6 @@
1
1
  import { Bundle } from '@medplum/fhirtypes';
2
2
  import { CodeableConcept } from '@medplum/fhirtypes';
3
+ import { Coding } from '@medplum/fhirtypes';
3
4
 
4
5
  export declare const ACT_CODE_SYSTEM = "http://terminology.hl7.org/CodeSystem/v3-ActCode";
5
6
 
@@ -11,6 +12,8 @@ export declare const ADMINISTRATIVE_GENDER_VALUE_SET = "http://hl7.org/fhir/Valu
11
12
 
12
13
  export declare const ALLERGIES_SECTION_TEMPLATE_IDS: CcdaTemplateId[];
13
14
 
15
+ export declare const ALLERGY_CATEGORY_MAPPER: EnumMapper<string, string>;
16
+
14
17
  export declare const ALLERGY_CLINICAL_CODE_SYSTEM = "http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical";
15
18
 
16
19
  export declare const ALLERGY_SEVERITY_MAPPER: EnumMapper<"moderate" | "mild" | "severe", string>;
@@ -58,7 +61,7 @@ export declare interface CcdaAct {
58
61
  templateId: CcdaTemplateId[];
59
62
  id?: CcdaId[];
60
63
  code: CcdaCode;
61
- statusCode: CcdaStatusCode;
64
+ statusCode: CcdaCode;
62
65
  effectiveTime?: CcdaEffectiveTime[];
63
66
  entryRelationship?: CcdaEntryRelationship[];
64
67
  author?: CcdaAuthor[];
@@ -107,13 +110,14 @@ export declare interface CcdaAuthor {
107
110
  assignedAuthor?: CcdaAssignedAuthor;
108
111
  }
109
112
 
110
- export declare interface CcdaCode {
113
+ export declare interface CcdaCode<T extends string = string> {
111
114
  '@_xsi:type'?: 'CD' | 'CE';
112
- '@_code'?: string;
115
+ '@_code'?: T;
113
116
  '@_codeSystem'?: string;
114
117
  '@_codeSystemName'?: string;
115
118
  '@_displayName'?: string;
116
119
  originalText?: CcdaText;
120
+ translation?: CcdaCode[];
117
121
  }
118
122
 
119
123
  export declare interface CcdaConsumable {
@@ -130,7 +134,7 @@ export declare interface CcdaDocumentationOf {
130
134
  }
131
135
 
132
136
  export declare interface CcdaEffectiveTime {
133
- '@_xsi:type'?: 'IVL_TS' | 'TS';
137
+ '@_xsi:type'?: 'IVL_TS' | 'TS' | 'PIVL_TS';
134
138
  '@_institutionSpecified'?: string;
135
139
  '@_operator'?: string;
136
140
  '@_value'?: string;
@@ -146,7 +150,7 @@ export declare interface CcdaEncounter {
146
150
  templateId: CcdaTemplateId[];
147
151
  id?: CcdaId[];
148
152
  code?: CcdaCode;
149
- statusCode?: CcdaStatusCode<'active' | 'completed' | 'aborted' | 'cancelled' | 'unknown'>;
153
+ statusCode?: CcdaCode<'active' | 'completed' | 'aborted' | 'cancelled' | 'unknown'>;
150
154
  effectiveTime?: CcdaEffectiveTime[];
151
155
  performer?: CcdaPerformer[];
152
156
  participant?: CcdaParticipant[];
@@ -179,6 +183,7 @@ export declare interface CcdaEvent {
179
183
  export declare interface CcdaId {
180
184
  '@_root'?: string;
181
185
  '@_extension'?: string;
186
+ '@_assigningAuthorityName'?: string;
182
187
  }
183
188
 
184
189
  export declare interface CcdaInnerComponent {
@@ -217,7 +222,7 @@ export declare interface CcdaManufacturerOrganization {
217
222
  }
218
223
 
219
224
  export declare interface CcdaName {
220
- '@_use'?: 'ANON' | 'C' | 'L' | 'M' | 'N' | 'TEMP';
225
+ '@_use'?: 'ANON' | 'C' | 'L' | 'P' | 'TEMP';
221
226
  family?: string;
222
227
  given?: string[];
223
228
  suffix?: string[];
@@ -232,7 +237,7 @@ export declare interface CcdaObservation {
232
237
  templateId: CcdaTemplateId[];
233
238
  id?: CcdaId[];
234
239
  code?: CcdaCode;
235
- statusCode: CcdaStatusCode;
240
+ statusCode: CcdaCode;
236
241
  effectiveTime?: CcdaEffectiveTime[];
237
242
  value?: CcdaValue;
238
243
  participant?: CcdaParticipant[];
@@ -253,7 +258,7 @@ export declare interface CcdaOrganizer {
253
258
  templateId: CcdaTemplateId[];
254
259
  id: CcdaId[];
255
260
  code?: CcdaCode;
256
- statusCode?: CcdaStatusCode;
261
+ statusCode?: CcdaCode;
257
262
  effectiveTime?: CcdaEffectiveTime[];
258
263
  component: CcdaOrganizerComponent[];
259
264
  }
@@ -276,7 +281,14 @@ export declare interface CcdaParticipant {
276
281
  export declare interface CcdaParticipantRole {
277
282
  '@_classCode'?: string;
278
283
  '@_typeCode'?: string;
284
+ templateId?: CcdaTemplateId[];
285
+ id?: CcdaId[];
286
+ code?: CcdaCode;
287
+ addr?: CcdaAddr[];
288
+ telecom?: CcdaTelecom[];
279
289
  playingEntity?: CcdaPlayingEntity;
290
+ playingDevice?: CcdaPlayingDevice;
291
+ scopingEntity?: CcdaScopingEntity;
280
292
  }
281
293
 
282
294
  export declare interface CcdaPatient {
@@ -303,14 +315,22 @@ export declare interface CcdaPerformer {
303
315
 
304
316
  export declare interface CcdaPeriod {
305
317
  '@_xsi:type'?: 'PIVL_TS';
306
- '@_value': string;
307
- '@_unit': string;
318
+ '@_value'?: string;
319
+ '@_unit'?: 's' | 'min' | 'h' | 'd' | 'wk' | 'mo' | 'a';
320
+ }
321
+
322
+ export declare interface CcdaPlayingDevice {
323
+ '@_classCode'?: string;
324
+ '@_typeCode'?: string;
325
+ code?: CcdaCode;
326
+ name?: string[];
308
327
  }
309
328
 
310
329
  export declare interface CcdaPlayingEntity {
311
330
  '@_classCode'?: string;
312
331
  '@_typeCode'?: string;
313
332
  code?: CcdaCode;
333
+ name?: string[];
314
334
  }
315
335
 
316
336
  export declare interface CcdaProcedure {
@@ -319,11 +339,12 @@ export declare interface CcdaProcedure {
319
339
  templateId: CcdaTemplateId[];
320
340
  id?: CcdaId[];
321
341
  code: CcdaCode;
322
- statusCode: CcdaStatusCode<'completed' | 'aborted' | 'cancelled' | 'new' | 'unknown'>;
342
+ statusCode: CcdaCode<'completed' | 'aborted' | 'cancelled' | 'new' | 'unknown'>;
323
343
  effectiveTime?: CcdaEffectiveTime[];
324
344
  methodCode?: CcdaCode;
325
345
  targetSiteCode?: CcdaCode;
326
346
  text?: CcdaText;
347
+ participant?: CcdaParticipant[];
327
348
  }
328
349
 
329
350
  export declare interface CcdaQuantity {
@@ -364,6 +385,14 @@ export declare interface CcdaRepresentedOrganization {
364
385
  addr?: CcdaAddr[];
365
386
  }
366
387
 
388
+ export declare interface CcdaScopingEntity {
389
+ '@_classCode'?: string;
390
+ '@_typeCode'?: string;
391
+ id?: CcdaId[];
392
+ code?: CcdaCode;
393
+ name?: string[];
394
+ }
395
+
367
396
  export declare interface CcdaSection {
368
397
  '@_nullFlavor'?: 'NI';
369
398
  templateId: CcdaTemplateId[];
@@ -379,10 +408,6 @@ export declare interface CcdaServiceEvent {
379
408
  effectiveTime?: CcdaEffectiveTime[];
380
409
  }
381
410
 
382
- export declare interface CcdaStatusCode<T extends string = string> {
383
- '@_code': T;
384
- }
385
-
386
411
  export declare interface CcdaStructuredBody {
387
412
  component: CcdaInnerComponent[];
388
413
  }
@@ -393,8 +418,8 @@ export declare interface CcdaSubstanceAdministration {
393
418
  '@_negationInd'?: string;
394
419
  templateId: CcdaTemplateId[];
395
420
  id?: CcdaId[];
396
- text?: CcdaText;
397
- statusCode?: CcdaStatusCode<'active' | 'completed' | 'aborted' | 'cancelled'>;
421
+ text?: string | CcdaText;
422
+ statusCode?: CcdaCode<'active' | 'completed' | 'aborted' | 'cancelled' | 'nullified' | 'obsolete'>;
398
423
  effectiveTime?: CcdaEffectiveTime[];
399
424
  routeCode?: CcdaCode;
400
425
  doseQuantity?: CcdaQuantity;
@@ -441,7 +466,7 @@ export declare const CONDITION_VERIFICATION_CODE_SYSTEM = "http://terminology.hl
441
466
 
442
467
  export declare const CONFIDENTIALITY_CODE_SYSTEM = "http://terminology.hl7.org/CodeSystem/v3-Confidentiality";
443
468
 
444
- export declare const CONFIDENTIALITY_MAPPER: EnumMapper<"L" | "M" | "N" | "U" | "R" | "V", "L" | "M" | "N" | "U" | "R" | "V">;
469
+ export declare const CONFIDENTIALITY_MAPPER: EnumMapper<"L" | "U" | "M" | "N" | "R" | "V", "L" | "U" | "M" | "N" | "R" | "V">;
445
470
 
446
471
  export declare const CONTACT_ENTITY_USE_VALUE_SET = "http://hl7.org/fhir/ValueSet/contactentity-use";
447
472
 
@@ -495,12 +520,13 @@ export declare class EnumMapper<TFhirValue extends string, TCcdaValue extends st
495
520
  readonly fhirToCcdaMap: Record<TFhirValue, EnumEntry<TFhirValue, TCcdaValue>>;
496
521
  constructor(systemName: string, ccdaSystemOid: string, fhirSystemUrl: string, entries: EnumEntry<TFhirValue, TCcdaValue>[]);
497
522
  getEntryByFhir(fhir: TFhirValue): EnumEntry<TFhirValue, TCcdaValue> | undefined;
523
+ getEntryByCcda(ccda: TCcdaValue): EnumEntry<TFhirValue, TCcdaValue> | undefined;
498
524
  mapCcdaToFhir(ccda: TCcdaValue): TFhirValue | undefined;
499
525
  mapCcdaToFhirWithDefault(ccda: TCcdaValue | undefined, defaultValue: TFhirValue): TFhirValue;
500
526
  mapFhirToCcdaWithDefault(fhir: TFhirValue | undefined, defaultValue: TCcdaValue): TCcdaValue;
501
527
  mapCcdaToFhirCodeableConcept(ccda: TCcdaValue): CodeableConcept | undefined;
502
528
  mapFhirToCcda(fhir: TFhirValue | undefined): TCcdaValue | undefined;
503
- mapFhirToCcdaCode(fhir: TFhirValue | undefined): CcdaCode | undefined;
529
+ mapFhirToCcdaCode(fhir: TFhirValue | undefined): CcdaCode<TCcdaValue> | undefined;
504
530
  }
505
531
 
506
532
  export declare const FHIR_CVX_URL = "http://hl7.org/fhir/sid/cvx";
@@ -518,7 +544,9 @@ export declare const HEALTH_CONCERNS_SECTION_TEMPLATE_IDS: CcdaTemplateId[];
518
544
  */
519
545
  export declare const HTTP = "http:";
520
546
 
521
- export declare const HUMAN_NAME_USE_MAPPER: EnumMapper<"usual" | "official" | "temp" | "nickname" | "anonymous" | "maiden" | "old", "ANON" | "C" | "L" | "M" | "N" | "TEMP">;
547
+ export declare const HUMAN_NAME_USE_MAPPER: EnumMapper<"usual" | "official" | "temp" | "nickname" | "anonymous" | "maiden" | "old", "ANON" | "C" | "L" | "P" | "TEMP">;
548
+
549
+ export declare const IMMUNIZATION_STATUS_MAPPER: EnumMapper<"completed" | "entered-in-error" | "not-done", "active" | "completed" | "aborted" | "cancelled" | "nullified" | "obsolete">;
522
550
 
523
551
  export declare const IMMUNIZATIONS_SECTION_TEMPLATE_IDS: CcdaTemplateId[];
524
552
 
@@ -571,6 +599,13 @@ export declare function mapCodeableConceptToCcdaCode(codeableConcept: CodeableCo
571
599
  */
572
600
  export declare function mapCodeableConceptToCcdaValue(codeableConcept: CodeableConcept | undefined): CcdaValue | undefined;
573
601
 
602
+ /**
603
+ * Map the FHIR coding to the C-CDA code.
604
+ * @param coding - The FHIR coding to map.
605
+ * @returns The C-CDA code.
606
+ */
607
+ export declare function mapCodingToCcdaCode(coding: Coding): CcdaCode;
608
+
574
609
  /**
575
610
  * Map the FHIR system to the C-CDA system.
576
611
  * @param system - The system to map.
@@ -594,7 +629,7 @@ export declare function mapFhirToCcdaDateTime(dateTime: string | undefined): str
594
629
 
595
630
  export declare const MEDICATION_REQUEST_STATUS_VALUE_SET = "http://hl7.org/fhir/ValueSet/medicationrequest-status";
596
631
 
597
- export declare const MEDICATION_STATUS_MAPPER: EnumMapper<Required<"active" | "completed" | "cancelled" | "unknown" | "entered-in-error" | "stopped" | "on-hold" | "draft">, "active" | "completed" | "aborted" | "cancelled">;
632
+ export declare const MEDICATION_STATUS_MAPPER: EnumMapper<Required<"active" | "completed" | "cancelled" | "unknown" | "entered-in-error" | "stopped" | "on-hold" | "draft">, "active" | "completed" | "aborted" | "cancelled" | "nullified" | "obsolete">;
598
633
 
599
634
  export declare const MEDICATIONS_SECTION_TEMPLATE_IDS: CcdaTemplateId[];
600
635
 
@@ -624,7 +659,7 @@ export declare const PROBLEM_STATUS_MAPPER: EnumMapper<string, string>;
624
659
 
625
660
  export declare const PROBLEMS_SECTION_TEMPLATE_IDS: CcdaTemplateId[];
626
661
 
627
- export declare const PROCEDURE_STATUS_MAPPER: EnumMapper<"completed" | "unknown" | "stopped" | "not-done", "completed" | "aborted" | "cancelled" | "unknown" | "new">;
662
+ export declare const PROCEDURE_STATUS_MAPPER: EnumMapper<"completed" | "unknown" | "not-done" | "stopped", "completed" | "aborted" | "cancelled" | "unknown" | "new">;
628
663
 
629
664
  export declare const PROCEDURES_SECTION_TEMPLATE_IDS: CcdaTemplateId[];
630
665
 
@@ -1,5 +1,6 @@
1
1
  import { Bundle } from '@medplum/fhirtypes';
2
2
  import { CodeableConcept } from '@medplum/fhirtypes';
3
+ import { Coding } from '@medplum/fhirtypes';
3
4
 
4
5
  export declare const ACT_CODE_SYSTEM = "http://terminology.hl7.org/CodeSystem/v3-ActCode";
5
6
 
@@ -11,6 +12,8 @@ export declare const ADMINISTRATIVE_GENDER_VALUE_SET = "http://hl7.org/fhir/Valu
11
12
 
12
13
  export declare const ALLERGIES_SECTION_TEMPLATE_IDS: CcdaTemplateId[];
13
14
 
15
+ export declare const ALLERGY_CATEGORY_MAPPER: EnumMapper<string, string>;
16
+
14
17
  export declare const ALLERGY_CLINICAL_CODE_SYSTEM = "http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical";
15
18
 
16
19
  export declare const ALLERGY_SEVERITY_MAPPER: EnumMapper<"moderate" | "mild" | "severe", string>;
@@ -58,7 +61,7 @@ export declare interface CcdaAct {
58
61
  templateId: CcdaTemplateId[];
59
62
  id?: CcdaId[];
60
63
  code: CcdaCode;
61
- statusCode: CcdaStatusCode;
64
+ statusCode: CcdaCode;
62
65
  effectiveTime?: CcdaEffectiveTime[];
63
66
  entryRelationship?: CcdaEntryRelationship[];
64
67
  author?: CcdaAuthor[];
@@ -107,13 +110,14 @@ export declare interface CcdaAuthor {
107
110
  assignedAuthor?: CcdaAssignedAuthor;
108
111
  }
109
112
 
110
- export declare interface CcdaCode {
113
+ export declare interface CcdaCode<T extends string = string> {
111
114
  '@_xsi:type'?: 'CD' | 'CE';
112
- '@_code'?: string;
115
+ '@_code'?: T;
113
116
  '@_codeSystem'?: string;
114
117
  '@_codeSystemName'?: string;
115
118
  '@_displayName'?: string;
116
119
  originalText?: CcdaText;
120
+ translation?: CcdaCode[];
117
121
  }
118
122
 
119
123
  export declare interface CcdaConsumable {
@@ -130,7 +134,7 @@ export declare interface CcdaDocumentationOf {
130
134
  }
131
135
 
132
136
  export declare interface CcdaEffectiveTime {
133
- '@_xsi:type'?: 'IVL_TS' | 'TS';
137
+ '@_xsi:type'?: 'IVL_TS' | 'TS' | 'PIVL_TS';
134
138
  '@_institutionSpecified'?: string;
135
139
  '@_operator'?: string;
136
140
  '@_value'?: string;
@@ -146,7 +150,7 @@ export declare interface CcdaEncounter {
146
150
  templateId: CcdaTemplateId[];
147
151
  id?: CcdaId[];
148
152
  code?: CcdaCode;
149
- statusCode?: CcdaStatusCode<'active' | 'completed' | 'aborted' | 'cancelled' | 'unknown'>;
153
+ statusCode?: CcdaCode<'active' | 'completed' | 'aborted' | 'cancelled' | 'unknown'>;
150
154
  effectiveTime?: CcdaEffectiveTime[];
151
155
  performer?: CcdaPerformer[];
152
156
  participant?: CcdaParticipant[];
@@ -179,6 +183,7 @@ export declare interface CcdaEvent {
179
183
  export declare interface CcdaId {
180
184
  '@_root'?: string;
181
185
  '@_extension'?: string;
186
+ '@_assigningAuthorityName'?: string;
182
187
  }
183
188
 
184
189
  export declare interface CcdaInnerComponent {
@@ -217,7 +222,7 @@ export declare interface CcdaManufacturerOrganization {
217
222
  }
218
223
 
219
224
  export declare interface CcdaName {
220
- '@_use'?: 'ANON' | 'C' | 'L' | 'M' | 'N' | 'TEMP';
225
+ '@_use'?: 'ANON' | 'C' | 'L' | 'P' | 'TEMP';
221
226
  family?: string;
222
227
  given?: string[];
223
228
  suffix?: string[];
@@ -232,7 +237,7 @@ export declare interface CcdaObservation {
232
237
  templateId: CcdaTemplateId[];
233
238
  id?: CcdaId[];
234
239
  code?: CcdaCode;
235
- statusCode: CcdaStatusCode;
240
+ statusCode: CcdaCode;
236
241
  effectiveTime?: CcdaEffectiveTime[];
237
242
  value?: CcdaValue;
238
243
  participant?: CcdaParticipant[];
@@ -253,7 +258,7 @@ export declare interface CcdaOrganizer {
253
258
  templateId: CcdaTemplateId[];
254
259
  id: CcdaId[];
255
260
  code?: CcdaCode;
256
- statusCode?: CcdaStatusCode;
261
+ statusCode?: CcdaCode;
257
262
  effectiveTime?: CcdaEffectiveTime[];
258
263
  component: CcdaOrganizerComponent[];
259
264
  }
@@ -276,7 +281,14 @@ export declare interface CcdaParticipant {
276
281
  export declare interface CcdaParticipantRole {
277
282
  '@_classCode'?: string;
278
283
  '@_typeCode'?: string;
284
+ templateId?: CcdaTemplateId[];
285
+ id?: CcdaId[];
286
+ code?: CcdaCode;
287
+ addr?: CcdaAddr[];
288
+ telecom?: CcdaTelecom[];
279
289
  playingEntity?: CcdaPlayingEntity;
290
+ playingDevice?: CcdaPlayingDevice;
291
+ scopingEntity?: CcdaScopingEntity;
280
292
  }
281
293
 
282
294
  export declare interface CcdaPatient {
@@ -303,14 +315,22 @@ export declare interface CcdaPerformer {
303
315
 
304
316
  export declare interface CcdaPeriod {
305
317
  '@_xsi:type'?: 'PIVL_TS';
306
- '@_value': string;
307
- '@_unit': string;
318
+ '@_value'?: string;
319
+ '@_unit'?: 's' | 'min' | 'h' | 'd' | 'wk' | 'mo' | 'a';
320
+ }
321
+
322
+ export declare interface CcdaPlayingDevice {
323
+ '@_classCode'?: string;
324
+ '@_typeCode'?: string;
325
+ code?: CcdaCode;
326
+ name?: string[];
308
327
  }
309
328
 
310
329
  export declare interface CcdaPlayingEntity {
311
330
  '@_classCode'?: string;
312
331
  '@_typeCode'?: string;
313
332
  code?: CcdaCode;
333
+ name?: string[];
314
334
  }
315
335
 
316
336
  export declare interface CcdaProcedure {
@@ -319,11 +339,12 @@ export declare interface CcdaProcedure {
319
339
  templateId: CcdaTemplateId[];
320
340
  id?: CcdaId[];
321
341
  code: CcdaCode;
322
- statusCode: CcdaStatusCode<'completed' | 'aborted' | 'cancelled' | 'new' | 'unknown'>;
342
+ statusCode: CcdaCode<'completed' | 'aborted' | 'cancelled' | 'new' | 'unknown'>;
323
343
  effectiveTime?: CcdaEffectiveTime[];
324
344
  methodCode?: CcdaCode;
325
345
  targetSiteCode?: CcdaCode;
326
346
  text?: CcdaText;
347
+ participant?: CcdaParticipant[];
327
348
  }
328
349
 
329
350
  export declare interface CcdaQuantity {
@@ -364,6 +385,14 @@ export declare interface CcdaRepresentedOrganization {
364
385
  addr?: CcdaAddr[];
365
386
  }
366
387
 
388
+ export declare interface CcdaScopingEntity {
389
+ '@_classCode'?: string;
390
+ '@_typeCode'?: string;
391
+ id?: CcdaId[];
392
+ code?: CcdaCode;
393
+ name?: string[];
394
+ }
395
+
367
396
  export declare interface CcdaSection {
368
397
  '@_nullFlavor'?: 'NI';
369
398
  templateId: CcdaTemplateId[];
@@ -379,10 +408,6 @@ export declare interface CcdaServiceEvent {
379
408
  effectiveTime?: CcdaEffectiveTime[];
380
409
  }
381
410
 
382
- export declare interface CcdaStatusCode<T extends string = string> {
383
- '@_code': T;
384
- }
385
-
386
411
  export declare interface CcdaStructuredBody {
387
412
  component: CcdaInnerComponent[];
388
413
  }
@@ -393,8 +418,8 @@ export declare interface CcdaSubstanceAdministration {
393
418
  '@_negationInd'?: string;
394
419
  templateId: CcdaTemplateId[];
395
420
  id?: CcdaId[];
396
- text?: CcdaText;
397
- statusCode?: CcdaStatusCode<'active' | 'completed' | 'aborted' | 'cancelled'>;
421
+ text?: string | CcdaText;
422
+ statusCode?: CcdaCode<'active' | 'completed' | 'aborted' | 'cancelled' | 'nullified' | 'obsolete'>;
398
423
  effectiveTime?: CcdaEffectiveTime[];
399
424
  routeCode?: CcdaCode;
400
425
  doseQuantity?: CcdaQuantity;
@@ -441,7 +466,7 @@ export declare const CONDITION_VERIFICATION_CODE_SYSTEM = "http://terminology.hl
441
466
 
442
467
  export declare const CONFIDENTIALITY_CODE_SYSTEM = "http://terminology.hl7.org/CodeSystem/v3-Confidentiality";
443
468
 
444
- export declare const CONFIDENTIALITY_MAPPER: EnumMapper<"L" | "M" | "N" | "U" | "R" | "V", "L" | "M" | "N" | "U" | "R" | "V">;
469
+ export declare const CONFIDENTIALITY_MAPPER: EnumMapper<"L" | "U" | "M" | "N" | "R" | "V", "L" | "U" | "M" | "N" | "R" | "V">;
445
470
 
446
471
  export declare const CONTACT_ENTITY_USE_VALUE_SET = "http://hl7.org/fhir/ValueSet/contactentity-use";
447
472
 
@@ -495,12 +520,13 @@ export declare class EnumMapper<TFhirValue extends string, TCcdaValue extends st
495
520
  readonly fhirToCcdaMap: Record<TFhirValue, EnumEntry<TFhirValue, TCcdaValue>>;
496
521
  constructor(systemName: string, ccdaSystemOid: string, fhirSystemUrl: string, entries: EnumEntry<TFhirValue, TCcdaValue>[]);
497
522
  getEntryByFhir(fhir: TFhirValue): EnumEntry<TFhirValue, TCcdaValue> | undefined;
523
+ getEntryByCcda(ccda: TCcdaValue): EnumEntry<TFhirValue, TCcdaValue> | undefined;
498
524
  mapCcdaToFhir(ccda: TCcdaValue): TFhirValue | undefined;
499
525
  mapCcdaToFhirWithDefault(ccda: TCcdaValue | undefined, defaultValue: TFhirValue): TFhirValue;
500
526
  mapFhirToCcdaWithDefault(fhir: TFhirValue | undefined, defaultValue: TCcdaValue): TCcdaValue;
501
527
  mapCcdaToFhirCodeableConcept(ccda: TCcdaValue): CodeableConcept | undefined;
502
528
  mapFhirToCcda(fhir: TFhirValue | undefined): TCcdaValue | undefined;
503
- mapFhirToCcdaCode(fhir: TFhirValue | undefined): CcdaCode | undefined;
529
+ mapFhirToCcdaCode(fhir: TFhirValue | undefined): CcdaCode<TCcdaValue> | undefined;
504
530
  }
505
531
 
506
532
  export declare const FHIR_CVX_URL = "http://hl7.org/fhir/sid/cvx";
@@ -518,7 +544,9 @@ export declare const HEALTH_CONCERNS_SECTION_TEMPLATE_IDS: CcdaTemplateId[];
518
544
  */
519
545
  export declare const HTTP = "http:";
520
546
 
521
- export declare const HUMAN_NAME_USE_MAPPER: EnumMapper<"usual" | "official" | "temp" | "nickname" | "anonymous" | "maiden" | "old", "ANON" | "C" | "L" | "M" | "N" | "TEMP">;
547
+ export declare const HUMAN_NAME_USE_MAPPER: EnumMapper<"usual" | "official" | "temp" | "nickname" | "anonymous" | "maiden" | "old", "ANON" | "C" | "L" | "P" | "TEMP">;
548
+
549
+ export declare const IMMUNIZATION_STATUS_MAPPER: EnumMapper<"completed" | "entered-in-error" | "not-done", "active" | "completed" | "aborted" | "cancelled" | "nullified" | "obsolete">;
522
550
 
523
551
  export declare const IMMUNIZATIONS_SECTION_TEMPLATE_IDS: CcdaTemplateId[];
524
552
 
@@ -571,6 +599,13 @@ export declare function mapCodeableConceptToCcdaCode(codeableConcept: CodeableCo
571
599
  */
572
600
  export declare function mapCodeableConceptToCcdaValue(codeableConcept: CodeableConcept | undefined): CcdaValue | undefined;
573
601
 
602
+ /**
603
+ * Map the FHIR coding to the C-CDA code.
604
+ * @param coding - The FHIR coding to map.
605
+ * @returns The C-CDA code.
606
+ */
607
+ export declare function mapCodingToCcdaCode(coding: Coding): CcdaCode;
608
+
574
609
  /**
575
610
  * Map the FHIR system to the C-CDA system.
576
611
  * @param system - The system to map.
@@ -594,7 +629,7 @@ export declare function mapFhirToCcdaDateTime(dateTime: string | undefined): str
594
629
 
595
630
  export declare const MEDICATION_REQUEST_STATUS_VALUE_SET = "http://hl7.org/fhir/ValueSet/medicationrequest-status";
596
631
 
597
- export declare const MEDICATION_STATUS_MAPPER: EnumMapper<Required<"active" | "completed" | "cancelled" | "unknown" | "entered-in-error" | "stopped" | "on-hold" | "draft">, "active" | "completed" | "aborted" | "cancelled">;
632
+ export declare const MEDICATION_STATUS_MAPPER: EnumMapper<Required<"active" | "completed" | "cancelled" | "unknown" | "entered-in-error" | "stopped" | "on-hold" | "draft">, "active" | "completed" | "aborted" | "cancelled" | "nullified" | "obsolete">;
598
633
 
599
634
  export declare const MEDICATIONS_SECTION_TEMPLATE_IDS: CcdaTemplateId[];
600
635
 
@@ -624,7 +659,7 @@ export declare const PROBLEM_STATUS_MAPPER: EnumMapper<string, string>;
624
659
 
625
660
  export declare const PROBLEMS_SECTION_TEMPLATE_IDS: CcdaTemplateId[];
626
661
 
627
- export declare const PROCEDURE_STATUS_MAPPER: EnumMapper<"completed" | "unknown" | "stopped" | "not-done", "completed" | "aborted" | "cancelled" | "unknown" | "new">;
662
+ export declare const PROCEDURE_STATUS_MAPPER: EnumMapper<"completed" | "unknown" | "not-done" | "stopped", "completed" | "aborted" | "cancelled" | "unknown" | "new">;
628
663
 
629
664
  export declare const PROCEDURES_SECTION_TEMPLATE_IDS: CcdaTemplateId[];
630
665