@medplum/ccda 3.3.0 → 4.0.1

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[];
@@ -217,7 +221,7 @@ export declare interface CcdaManufacturerOrganization {
217
221
  }
218
222
 
219
223
  export declare interface CcdaName {
220
- '@_use'?: 'ANON' | 'C' | 'L' | 'M' | 'N' | 'TEMP';
224
+ '@_use'?: 'ANON' | 'C' | 'L' | 'P' | 'TEMP';
221
225
  family?: string;
222
226
  given?: string[];
223
227
  suffix?: string[];
@@ -232,7 +236,7 @@ export declare interface CcdaObservation {
232
236
  templateId: CcdaTemplateId[];
233
237
  id?: CcdaId[];
234
238
  code?: CcdaCode;
235
- statusCode: CcdaStatusCode;
239
+ statusCode: CcdaCode;
236
240
  effectiveTime?: CcdaEffectiveTime[];
237
241
  value?: CcdaValue;
238
242
  participant?: CcdaParticipant[];
@@ -253,7 +257,7 @@ export declare interface CcdaOrganizer {
253
257
  templateId: CcdaTemplateId[];
254
258
  id: CcdaId[];
255
259
  code?: CcdaCode;
256
- statusCode?: CcdaStatusCode;
260
+ statusCode?: CcdaCode;
257
261
  effectiveTime?: CcdaEffectiveTime[];
258
262
  component: CcdaOrganizerComponent[];
259
263
  }
@@ -276,6 +280,11 @@ export declare interface CcdaParticipant {
276
280
  export declare interface CcdaParticipantRole {
277
281
  '@_classCode'?: string;
278
282
  '@_typeCode'?: string;
283
+ templateId?: CcdaTemplateId[];
284
+ id?: CcdaId[];
285
+ code?: CcdaCode;
286
+ addr?: CcdaAddr[];
287
+ telecom?: CcdaTelecom[];
279
288
  playingEntity?: CcdaPlayingEntity;
280
289
  }
281
290
 
@@ -303,14 +312,15 @@ export declare interface CcdaPerformer {
303
312
 
304
313
  export declare interface CcdaPeriod {
305
314
  '@_xsi:type'?: 'PIVL_TS';
306
- '@_value': string;
307
- '@_unit': string;
315
+ '@_value'?: string;
316
+ '@_unit'?: 's' | 'min' | 'h' | 'd' | 'wk' | 'mo' | 'a';
308
317
  }
309
318
 
310
319
  export declare interface CcdaPlayingEntity {
311
320
  '@_classCode'?: string;
312
321
  '@_typeCode'?: string;
313
322
  code?: CcdaCode;
323
+ name?: string[];
314
324
  }
315
325
 
316
326
  export declare interface CcdaProcedure {
@@ -319,11 +329,12 @@ export declare interface CcdaProcedure {
319
329
  templateId: CcdaTemplateId[];
320
330
  id?: CcdaId[];
321
331
  code: CcdaCode;
322
- statusCode: CcdaStatusCode<'completed' | 'aborted' | 'cancelled' | 'new' | 'unknown'>;
332
+ statusCode: CcdaCode<'completed' | 'aborted' | 'cancelled' | 'new' | 'unknown'>;
323
333
  effectiveTime?: CcdaEffectiveTime[];
324
334
  methodCode?: CcdaCode;
325
335
  targetSiteCode?: CcdaCode;
326
336
  text?: CcdaText;
337
+ participant?: CcdaParticipant[];
327
338
  }
328
339
 
329
340
  export declare interface CcdaQuantity {
@@ -379,10 +390,6 @@ export declare interface CcdaServiceEvent {
379
390
  effectiveTime?: CcdaEffectiveTime[];
380
391
  }
381
392
 
382
- export declare interface CcdaStatusCode<T extends string = string> {
383
- '@_code': T;
384
- }
385
-
386
393
  export declare interface CcdaStructuredBody {
387
394
  component: CcdaInnerComponent[];
388
395
  }
@@ -393,8 +400,8 @@ export declare interface CcdaSubstanceAdministration {
393
400
  '@_negationInd'?: string;
394
401
  templateId: CcdaTemplateId[];
395
402
  id?: CcdaId[];
396
- text?: CcdaText;
397
- statusCode?: CcdaStatusCode<'active' | 'completed' | 'aborted' | 'cancelled'>;
403
+ text?: string | CcdaText;
404
+ statusCode?: CcdaCode<'active' | 'completed' | 'aborted' | 'cancelled' | 'nullified' | 'obsolete'>;
398
405
  effectiveTime?: CcdaEffectiveTime[];
399
406
  routeCode?: CcdaCode;
400
407
  doseQuantity?: CcdaQuantity;
@@ -441,7 +448,7 @@ export declare const CONDITION_VERIFICATION_CODE_SYSTEM = "http://terminology.hl
441
448
 
442
449
  export declare const CONFIDENTIALITY_CODE_SYSTEM = "http://terminology.hl7.org/CodeSystem/v3-Confidentiality";
443
450
 
444
- export declare const CONFIDENTIALITY_MAPPER: EnumMapper<"L" | "M" | "N" | "U" | "R" | "V", "L" | "M" | "N" | "U" | "R" | "V">;
451
+ export declare const CONFIDENTIALITY_MAPPER: EnumMapper<"L" | "U" | "M" | "N" | "R" | "V", "L" | "U" | "M" | "N" | "R" | "V">;
445
452
 
446
453
  export declare const CONTACT_ENTITY_USE_VALUE_SET = "http://hl7.org/fhir/ValueSet/contactentity-use";
447
454
 
@@ -495,12 +502,13 @@ export declare class EnumMapper<TFhirValue extends string, TCcdaValue extends st
495
502
  readonly fhirToCcdaMap: Record<TFhirValue, EnumEntry<TFhirValue, TCcdaValue>>;
496
503
  constructor(systemName: string, ccdaSystemOid: string, fhirSystemUrl: string, entries: EnumEntry<TFhirValue, TCcdaValue>[]);
497
504
  getEntryByFhir(fhir: TFhirValue): EnumEntry<TFhirValue, TCcdaValue> | undefined;
505
+ getEntryByCcda(ccda: TCcdaValue): EnumEntry<TFhirValue, TCcdaValue> | undefined;
498
506
  mapCcdaToFhir(ccda: TCcdaValue): TFhirValue | undefined;
499
507
  mapCcdaToFhirWithDefault(ccda: TCcdaValue | undefined, defaultValue: TFhirValue): TFhirValue;
500
508
  mapFhirToCcdaWithDefault(fhir: TFhirValue | undefined, defaultValue: TCcdaValue): TCcdaValue;
501
509
  mapCcdaToFhirCodeableConcept(ccda: TCcdaValue): CodeableConcept | undefined;
502
510
  mapFhirToCcda(fhir: TFhirValue | undefined): TCcdaValue | undefined;
503
- mapFhirToCcdaCode(fhir: TFhirValue | undefined): CcdaCode | undefined;
511
+ mapFhirToCcdaCode(fhir: TFhirValue | undefined): CcdaCode<TCcdaValue> | undefined;
504
512
  }
505
513
 
506
514
  export declare const FHIR_CVX_URL = "http://hl7.org/fhir/sid/cvx";
@@ -518,7 +526,9 @@ export declare const HEALTH_CONCERNS_SECTION_TEMPLATE_IDS: CcdaTemplateId[];
518
526
  */
519
527
  export declare const HTTP = "http:";
520
528
 
521
- export declare const HUMAN_NAME_USE_MAPPER: EnumMapper<"usual" | "official" | "temp" | "nickname" | "anonymous" | "maiden" | "old", "ANON" | "C" | "L" | "M" | "N" | "TEMP">;
529
+ export declare const HUMAN_NAME_USE_MAPPER: EnumMapper<"usual" | "official" | "temp" | "nickname" | "anonymous" | "maiden" | "old", "ANON" | "C" | "L" | "P" | "TEMP">;
530
+
531
+ export declare const IMMUNIZATION_STATUS_MAPPER: EnumMapper<"completed" | "entered-in-error" | "not-done", "active" | "completed" | "aborted" | "cancelled" | "nullified" | "obsolete">;
522
532
 
523
533
  export declare const IMMUNIZATIONS_SECTION_TEMPLATE_IDS: CcdaTemplateId[];
524
534
 
@@ -571,6 +581,13 @@ export declare function mapCodeableConceptToCcdaCode(codeableConcept: CodeableCo
571
581
  */
572
582
  export declare function mapCodeableConceptToCcdaValue(codeableConcept: CodeableConcept | undefined): CcdaValue | undefined;
573
583
 
584
+ /**
585
+ * Map the FHIR coding to the C-CDA code.
586
+ * @param coding - The FHIR coding to map.
587
+ * @returns The C-CDA code.
588
+ */
589
+ export declare function mapCodingToCcdaCode(coding: Coding): CcdaCode;
590
+
574
591
  /**
575
592
  * Map the FHIR system to the C-CDA system.
576
593
  * @param system - The system to map.
@@ -594,7 +611,7 @@ export declare function mapFhirToCcdaDateTime(dateTime: string | undefined): str
594
611
 
595
612
  export declare const MEDICATION_REQUEST_STATUS_VALUE_SET = "http://hl7.org/fhir/ValueSet/medicationrequest-status";
596
613
 
597
- export declare const MEDICATION_STATUS_MAPPER: EnumMapper<Required<"active" | "completed" | "cancelled" | "unknown" | "entered-in-error" | "stopped" | "on-hold" | "draft">, "active" | "completed" | "aborted" | "cancelled">;
614
+ 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
615
 
599
616
  export declare const MEDICATIONS_SECTION_TEMPLATE_IDS: CcdaTemplateId[];
600
617
 
@@ -624,7 +641,7 @@ export declare const PROBLEM_STATUS_MAPPER: EnumMapper<string, string>;
624
641
 
625
642
  export declare const PROBLEMS_SECTION_TEMPLATE_IDS: CcdaTemplateId[];
626
643
 
627
- export declare const PROCEDURE_STATUS_MAPPER: EnumMapper<"completed" | "unknown" | "stopped" | "not-done", "completed" | "aborted" | "cancelled" | "unknown" | "new">;
644
+ export declare const PROCEDURE_STATUS_MAPPER: EnumMapper<"completed" | "unknown" | "not-done" | "stopped", "completed" | "aborted" | "cancelled" | "unknown" | "new">;
628
645
 
629
646
  export declare const PROCEDURES_SECTION_TEMPLATE_IDS: CcdaTemplateId[];
630
647
 
@@ -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[];
@@ -217,7 +221,7 @@ export declare interface CcdaManufacturerOrganization {
217
221
  }
218
222
 
219
223
  export declare interface CcdaName {
220
- '@_use'?: 'ANON' | 'C' | 'L' | 'M' | 'N' | 'TEMP';
224
+ '@_use'?: 'ANON' | 'C' | 'L' | 'P' | 'TEMP';
221
225
  family?: string;
222
226
  given?: string[];
223
227
  suffix?: string[];
@@ -232,7 +236,7 @@ export declare interface CcdaObservation {
232
236
  templateId: CcdaTemplateId[];
233
237
  id?: CcdaId[];
234
238
  code?: CcdaCode;
235
- statusCode: CcdaStatusCode;
239
+ statusCode: CcdaCode;
236
240
  effectiveTime?: CcdaEffectiveTime[];
237
241
  value?: CcdaValue;
238
242
  participant?: CcdaParticipant[];
@@ -253,7 +257,7 @@ export declare interface CcdaOrganizer {
253
257
  templateId: CcdaTemplateId[];
254
258
  id: CcdaId[];
255
259
  code?: CcdaCode;
256
- statusCode?: CcdaStatusCode;
260
+ statusCode?: CcdaCode;
257
261
  effectiveTime?: CcdaEffectiveTime[];
258
262
  component: CcdaOrganizerComponent[];
259
263
  }
@@ -276,6 +280,11 @@ export declare interface CcdaParticipant {
276
280
  export declare interface CcdaParticipantRole {
277
281
  '@_classCode'?: string;
278
282
  '@_typeCode'?: string;
283
+ templateId?: CcdaTemplateId[];
284
+ id?: CcdaId[];
285
+ code?: CcdaCode;
286
+ addr?: CcdaAddr[];
287
+ telecom?: CcdaTelecom[];
279
288
  playingEntity?: CcdaPlayingEntity;
280
289
  }
281
290
 
@@ -303,14 +312,15 @@ export declare interface CcdaPerformer {
303
312
 
304
313
  export declare interface CcdaPeriod {
305
314
  '@_xsi:type'?: 'PIVL_TS';
306
- '@_value': string;
307
- '@_unit': string;
315
+ '@_value'?: string;
316
+ '@_unit'?: 's' | 'min' | 'h' | 'd' | 'wk' | 'mo' | 'a';
308
317
  }
309
318
 
310
319
  export declare interface CcdaPlayingEntity {
311
320
  '@_classCode'?: string;
312
321
  '@_typeCode'?: string;
313
322
  code?: CcdaCode;
323
+ name?: string[];
314
324
  }
315
325
 
316
326
  export declare interface CcdaProcedure {
@@ -319,11 +329,12 @@ export declare interface CcdaProcedure {
319
329
  templateId: CcdaTemplateId[];
320
330
  id?: CcdaId[];
321
331
  code: CcdaCode;
322
- statusCode: CcdaStatusCode<'completed' | 'aborted' | 'cancelled' | 'new' | 'unknown'>;
332
+ statusCode: CcdaCode<'completed' | 'aborted' | 'cancelled' | 'new' | 'unknown'>;
323
333
  effectiveTime?: CcdaEffectiveTime[];
324
334
  methodCode?: CcdaCode;
325
335
  targetSiteCode?: CcdaCode;
326
336
  text?: CcdaText;
337
+ participant?: CcdaParticipant[];
327
338
  }
328
339
 
329
340
  export declare interface CcdaQuantity {
@@ -379,10 +390,6 @@ export declare interface CcdaServiceEvent {
379
390
  effectiveTime?: CcdaEffectiveTime[];
380
391
  }
381
392
 
382
- export declare interface CcdaStatusCode<T extends string = string> {
383
- '@_code': T;
384
- }
385
-
386
393
  export declare interface CcdaStructuredBody {
387
394
  component: CcdaInnerComponent[];
388
395
  }
@@ -393,8 +400,8 @@ export declare interface CcdaSubstanceAdministration {
393
400
  '@_negationInd'?: string;
394
401
  templateId: CcdaTemplateId[];
395
402
  id?: CcdaId[];
396
- text?: CcdaText;
397
- statusCode?: CcdaStatusCode<'active' | 'completed' | 'aborted' | 'cancelled'>;
403
+ text?: string | CcdaText;
404
+ statusCode?: CcdaCode<'active' | 'completed' | 'aborted' | 'cancelled' | 'nullified' | 'obsolete'>;
398
405
  effectiveTime?: CcdaEffectiveTime[];
399
406
  routeCode?: CcdaCode;
400
407
  doseQuantity?: CcdaQuantity;
@@ -441,7 +448,7 @@ export declare const CONDITION_VERIFICATION_CODE_SYSTEM = "http://terminology.hl
441
448
 
442
449
  export declare const CONFIDENTIALITY_CODE_SYSTEM = "http://terminology.hl7.org/CodeSystem/v3-Confidentiality";
443
450
 
444
- export declare const CONFIDENTIALITY_MAPPER: EnumMapper<"L" | "M" | "N" | "U" | "R" | "V", "L" | "M" | "N" | "U" | "R" | "V">;
451
+ export declare const CONFIDENTIALITY_MAPPER: EnumMapper<"L" | "U" | "M" | "N" | "R" | "V", "L" | "U" | "M" | "N" | "R" | "V">;
445
452
 
446
453
  export declare const CONTACT_ENTITY_USE_VALUE_SET = "http://hl7.org/fhir/ValueSet/contactentity-use";
447
454
 
@@ -495,12 +502,13 @@ export declare class EnumMapper<TFhirValue extends string, TCcdaValue extends st
495
502
  readonly fhirToCcdaMap: Record<TFhirValue, EnumEntry<TFhirValue, TCcdaValue>>;
496
503
  constructor(systemName: string, ccdaSystemOid: string, fhirSystemUrl: string, entries: EnumEntry<TFhirValue, TCcdaValue>[]);
497
504
  getEntryByFhir(fhir: TFhirValue): EnumEntry<TFhirValue, TCcdaValue> | undefined;
505
+ getEntryByCcda(ccda: TCcdaValue): EnumEntry<TFhirValue, TCcdaValue> | undefined;
498
506
  mapCcdaToFhir(ccda: TCcdaValue): TFhirValue | undefined;
499
507
  mapCcdaToFhirWithDefault(ccda: TCcdaValue | undefined, defaultValue: TFhirValue): TFhirValue;
500
508
  mapFhirToCcdaWithDefault(fhir: TFhirValue | undefined, defaultValue: TCcdaValue): TCcdaValue;
501
509
  mapCcdaToFhirCodeableConcept(ccda: TCcdaValue): CodeableConcept | undefined;
502
510
  mapFhirToCcda(fhir: TFhirValue | undefined): TCcdaValue | undefined;
503
- mapFhirToCcdaCode(fhir: TFhirValue | undefined): CcdaCode | undefined;
511
+ mapFhirToCcdaCode(fhir: TFhirValue | undefined): CcdaCode<TCcdaValue> | undefined;
504
512
  }
505
513
 
506
514
  export declare const FHIR_CVX_URL = "http://hl7.org/fhir/sid/cvx";
@@ -518,7 +526,9 @@ export declare const HEALTH_CONCERNS_SECTION_TEMPLATE_IDS: CcdaTemplateId[];
518
526
  */
519
527
  export declare const HTTP = "http:";
520
528
 
521
- export declare const HUMAN_NAME_USE_MAPPER: EnumMapper<"usual" | "official" | "temp" | "nickname" | "anonymous" | "maiden" | "old", "ANON" | "C" | "L" | "M" | "N" | "TEMP">;
529
+ export declare const HUMAN_NAME_USE_MAPPER: EnumMapper<"usual" | "official" | "temp" | "nickname" | "anonymous" | "maiden" | "old", "ANON" | "C" | "L" | "P" | "TEMP">;
530
+
531
+ export declare const IMMUNIZATION_STATUS_MAPPER: EnumMapper<"completed" | "entered-in-error" | "not-done", "active" | "completed" | "aborted" | "cancelled" | "nullified" | "obsolete">;
522
532
 
523
533
  export declare const IMMUNIZATIONS_SECTION_TEMPLATE_IDS: CcdaTemplateId[];
524
534
 
@@ -571,6 +581,13 @@ export declare function mapCodeableConceptToCcdaCode(codeableConcept: CodeableCo
571
581
  */
572
582
  export declare function mapCodeableConceptToCcdaValue(codeableConcept: CodeableConcept | undefined): CcdaValue | undefined;
573
583
 
584
+ /**
585
+ * Map the FHIR coding to the C-CDA code.
586
+ * @param coding - The FHIR coding to map.
587
+ * @returns The C-CDA code.
588
+ */
589
+ export declare function mapCodingToCcdaCode(coding: Coding): CcdaCode;
590
+
574
591
  /**
575
592
  * Map the FHIR system to the C-CDA system.
576
593
  * @param system - The system to map.
@@ -594,7 +611,7 @@ export declare function mapFhirToCcdaDateTime(dateTime: string | undefined): str
594
611
 
595
612
  export declare const MEDICATION_REQUEST_STATUS_VALUE_SET = "http://hl7.org/fhir/ValueSet/medicationrequest-status";
596
613
 
597
- export declare const MEDICATION_STATUS_MAPPER: EnumMapper<Required<"active" | "completed" | "cancelled" | "unknown" | "entered-in-error" | "stopped" | "on-hold" | "draft">, "active" | "completed" | "aborted" | "cancelled">;
614
+ 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
615
 
599
616
  export declare const MEDICATIONS_SECTION_TEMPLATE_IDS: CcdaTemplateId[];
600
617
 
@@ -624,7 +641,7 @@ export declare const PROBLEM_STATUS_MAPPER: EnumMapper<string, string>;
624
641
 
625
642
  export declare const PROBLEMS_SECTION_TEMPLATE_IDS: CcdaTemplateId[];
626
643
 
627
- export declare const PROCEDURE_STATUS_MAPPER: EnumMapper<"completed" | "unknown" | "stopped" | "not-done", "completed" | "aborted" | "cancelled" | "unknown" | "new">;
644
+ export declare const PROCEDURE_STATUS_MAPPER: EnumMapper<"completed" | "unknown" | "not-done" | "stopped", "completed" | "aborted" | "cancelled" | "unknown" | "new">;
628
645
 
629
646
  export declare const PROCEDURES_SECTION_TEMPLATE_IDS: CcdaTemplateId[];
630
647