gdc-common-utils-ts 2.9.14 → 2.9.16
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 +6 -0
- package/dist/constants/hl7-roles.d.ts +12 -1
- package/dist/constants/hl7-roles.js +12 -1
- package/dist/convert/convert-shared.js +1 -1
- package/dist/examples/shared.d.ts +2 -0
- package/dist/examples/shared.js +3 -1
- package/dist/models/animal-onboarding.d.ts +5 -2
- package/dist/models/animal-onboarding.js +7 -3
- package/dist/utils/allergy-intolerance-entry-editor.d.ts +7 -2
- package/dist/utils/allergy-intolerance-entry-editor.js +7 -4
- package/dist/utils/bundle-entry-editor.d.ts +12 -0
- package/dist/utils/bundle-entry-editor.js +57 -0
- package/dist/utils/care-plan-entry-editor.d.ts +21 -0
- package/dist/utils/care-plan-entry-editor.js +20 -3
- package/dist/utils/clinical-impression-entry-editor.d.ts +7 -0
- package/dist/utils/clinical-impression-entry-editor.js +6 -0
- package/dist/utils/condition-entry-editor.d.ts +17 -0
- package/dist/utils/condition-entry-editor.js +24 -6
- package/dist/utils/coverage-entry-editor.d.ts +12 -0
- package/dist/utils/coverage-entry-editor.js +14 -6
- package/dist/utils/device-entry-editor.d.ts +6 -0
- package/dist/utils/device-entry-editor.js +7 -3
- package/dist/utils/device-use-statement-entry-editor.d.ts +5 -0
- package/dist/utils/device-use-statement-entry-editor.js +6 -3
- package/dist/utils/diagnostic-report-entry-editor.d.ts +11 -0
- package/dist/utils/diagnostic-report-entry-editor.js +15 -8
- package/dist/utils/document-reference-entry-editor.d.ts +12 -0
- package/dist/utils/document-reference-entry-editor.js +14 -6
- package/dist/utils/encounter-entry-editor.d.ts +17 -0
- package/dist/utils/encounter-entry-editor.js +20 -9
- package/dist/utils/family-organization-summary.d.ts +1 -1
- package/dist/utils/family-organization-summary.js +15 -3
- package/dist/utils/flag-entry-editor.d.ts +13 -2
- package/dist/utils/flag-entry-editor.js +14 -7
- package/dist/utils/immunization-entry-editor.d.ts +44 -2
- package/dist/utils/immunization-entry-editor.js +57 -17
- package/dist/utils/medication-statement-entry-editor.d.ts +29 -6
- package/dist/utils/medication-statement-entry-editor.js +28 -12
- package/dist/utils/observation-component-entry-editor.d.ts +17 -0
- package/dist/utils/observation-component-entry-editor.js +42 -15
- package/dist/utils/observation-entry-editor.d.ts +8 -0
- package/dist/utils/observation-entry-editor.js +7 -0
- package/dist/utils/procedure-entry-editor.d.ts +22 -4
- package/dist/utils/procedure-entry-editor.js +21 -8
- package/dist/utils/related-person-entry-editor.d.ts +6 -0
- package/dist/utils/related-person-entry-editor.js +7 -2
- package/dist/utils/vital-sign-entry-editor.d.ts +6 -0
- package/dist/utils/vital-sign-entry-editor.js +10 -5
- package/package.json +1 -1
|
@@ -52,22 +52,29 @@ export class DiagnosticReportEntryEditor extends ClinicalResourceEntryEditor {
|
|
|
52
52
|
getDate() {
|
|
53
53
|
return this.getScalarClaim(DiagnosticReportClaim.Date);
|
|
54
54
|
}
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
return this.setScalarClaim(DiagnosticReportClaim.Category, category);
|
|
55
|
+
setCategory(categoryOrSystem, codeValue) {
|
|
56
|
+
return this.setCodingTokenCode(DiagnosticReportClaim.Category, categoryOrSystem, codeValue);
|
|
58
57
|
}
|
|
59
58
|
/** Returns the report category. */
|
|
60
59
|
getCategory() {
|
|
61
|
-
return this.
|
|
60
|
+
return this.getCodingTokenSystemAndCode(DiagnosticReportClaim.Category);
|
|
62
61
|
}
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
62
|
+
getCategoryCode() { return this.getCodingTokenCode(DiagnosticReportClaim.Category); }
|
|
63
|
+
setCategoryCodeSystem(system) { return this.setCodingTokenSystem(DiagnosticReportClaim.Category, system); }
|
|
64
|
+
getCategoryCodeSystem() { return this.getCodingTokenSystem(DiagnosticReportClaim.Category); }
|
|
65
|
+
setCategorySystemAndCode(system, code) { return this.setCodingTokenSystemAndCode(DiagnosticReportClaim.Category, system, code); }
|
|
66
|
+
getCategorySystemAndCode() { return this.getCodingTokenSystemAndCode(DiagnosticReportClaim.Category); }
|
|
67
|
+
setCode(codeOrSystem, codeValue) {
|
|
68
|
+
return this.setCodingTokenCode(DiagnosticReportClaim.Code, codeOrSystem, codeValue);
|
|
66
69
|
}
|
|
67
70
|
/** Returns the main report code. */
|
|
68
71
|
getCode() {
|
|
69
|
-
return this.
|
|
72
|
+
return this.getCodingTokenCode(DiagnosticReportClaim.Code);
|
|
70
73
|
}
|
|
74
|
+
setCodeSystem(system) { return this.setCodingTokenSystem(DiagnosticReportClaim.Code, system); }
|
|
75
|
+
getCodeSystem() { return this.getCodingTokenSystem(DiagnosticReportClaim.Code); }
|
|
76
|
+
setSystemAndCode(system, code) { return this.setCodingTokenSystemAndCode(DiagnosticReportClaim.Code, system, code); }
|
|
77
|
+
getSystemAndCode() { return this.getCodingTokenSystemAndCode(DiagnosticReportClaim.Code); }
|
|
71
78
|
/** Sets the local-language report name projected to FHIR `code.text`. */
|
|
72
79
|
setCodeTextLocal(text) {
|
|
73
80
|
return this.setScalarClaim(DiagnosticReportClaim.CodeText, text);
|
|
@@ -25,12 +25,24 @@ export declare class DocumentReferenceEntryEditor extends ClinicalResourceEntryE
|
|
|
25
25
|
getSubject(): string | undefined;
|
|
26
26
|
/** Sets the coded document type. */
|
|
27
27
|
setType(value?: string | null): this;
|
|
28
|
+
setType(codeSystem: string, codeValue: string): this;
|
|
28
29
|
/** Returns the coded document type. */
|
|
29
30
|
getType(): string | undefined;
|
|
31
|
+
getTypeCode(): string | undefined;
|
|
32
|
+
setTypeCodeSystem(system?: string | null): this;
|
|
33
|
+
getTypeCodeSystem(): string | undefined;
|
|
34
|
+
setTypeSystemAndCode(system?: string | null, code?: string | null): this;
|
|
35
|
+
getTypeSystemAndCode(): string | undefined;
|
|
30
36
|
/** Sets the document category. */
|
|
31
37
|
setCategory(value?: string | null): this;
|
|
38
|
+
setCategory(codeSystem: string, codeValue: string): this;
|
|
32
39
|
/** Returns the document category. */
|
|
33
40
|
getCategory(): string | undefined;
|
|
41
|
+
getCategoryCode(): string | undefined;
|
|
42
|
+
setCategoryCodeSystem(system?: string | null): this;
|
|
43
|
+
getCategoryCodeSystem(): string | undefined;
|
|
44
|
+
setCategorySystemAndCode(system?: string | null, code?: string | null): this;
|
|
45
|
+
getCategorySystemAndCode(): string | undefined;
|
|
34
46
|
/** Sets the MIME type of the attached payload, such as PDF or image content. */
|
|
35
47
|
setContentType(value?: string | null): this;
|
|
36
48
|
/** Returns the MIME type of the attached payload. */
|
|
@@ -26,14 +26,22 @@ export class DocumentReferenceEntryEditor extends ClinicalResourceEntryEditor {
|
|
|
26
26
|
setSubject(subject) { return this.setScalarClaim(DocumentReferenceClaim.Subject, subject); }
|
|
27
27
|
/** Returns the subject reference for the attached document. */
|
|
28
28
|
getSubject() { return this.getScalarClaim(DocumentReferenceClaim.Subject); }
|
|
29
|
-
|
|
30
|
-
setType(value) { return this.setScalarClaim(DocumentReferenceClaim.Type, value); }
|
|
29
|
+
setType(valueOrSystem, codeValue) { return this.setCodingTokenCode(DocumentReferenceClaim.Type, valueOrSystem, codeValue); }
|
|
31
30
|
/** Returns the coded document type. */
|
|
32
|
-
getType() { return this.
|
|
33
|
-
|
|
34
|
-
|
|
31
|
+
getType() { return this.getCodingTokenSystemAndCode(DocumentReferenceClaim.Type); }
|
|
32
|
+
getTypeCode() { return this.getCodingTokenCode(DocumentReferenceClaim.Type); }
|
|
33
|
+
setTypeCodeSystem(system) { return this.setCodingTokenSystem(DocumentReferenceClaim.Type, system); }
|
|
34
|
+
getTypeCodeSystem() { return this.getCodingTokenSystem(DocumentReferenceClaim.Type); }
|
|
35
|
+
setTypeSystemAndCode(system, code) { return this.setCodingTokenSystemAndCode(DocumentReferenceClaim.Type, system, code); }
|
|
36
|
+
getTypeSystemAndCode() { return this.getCodingTokenSystemAndCode(DocumentReferenceClaim.Type); }
|
|
37
|
+
setCategory(valueOrSystem, codeValue) { return this.setCodingTokenCode(DocumentReferenceClaim.Category, valueOrSystem, codeValue); }
|
|
35
38
|
/** Returns the document category. */
|
|
36
|
-
getCategory() { return this.
|
|
39
|
+
getCategory() { return this.getCodingTokenSystemAndCode(DocumentReferenceClaim.Category); }
|
|
40
|
+
getCategoryCode() { return this.getCodingTokenCode(DocumentReferenceClaim.Category); }
|
|
41
|
+
setCategoryCodeSystem(system) { return this.setCodingTokenSystem(DocumentReferenceClaim.Category, system); }
|
|
42
|
+
getCategoryCodeSystem() { return this.getCodingTokenSystem(DocumentReferenceClaim.Category); }
|
|
43
|
+
setCategorySystemAndCode(system, code) { return this.setCodingTokenSystemAndCode(DocumentReferenceClaim.Category, system, code); }
|
|
44
|
+
getCategorySystemAndCode() { return this.getCodingTokenSystemAndCode(DocumentReferenceClaim.Category); }
|
|
37
45
|
/** Sets the MIME type of the attached payload, such as PDF or image content. */
|
|
38
46
|
setContentType(value) { return this.setScalarClaim(DocumentReferenceClaim.ContentType, value); }
|
|
39
47
|
/** Returns the MIME type of the attached payload. */
|
|
@@ -22,12 +22,24 @@ export declare class EncounterEntryEditor extends ClinicalResourceEntryEditor {
|
|
|
22
22
|
getStatus(): string | undefined;
|
|
23
23
|
/** Writes the encounter class. */
|
|
24
24
|
setClass(value?: string | null): this;
|
|
25
|
+
setClass(codeSystem: string, codeValue: string): this;
|
|
25
26
|
/** Reads the encounter class. */
|
|
26
27
|
getClass(): string | undefined;
|
|
28
|
+
getClassCode(): string | undefined;
|
|
29
|
+
setClassCodeSystem(system?: string | null): this;
|
|
30
|
+
getClassCodeSystem(): string | undefined;
|
|
31
|
+
setClassSystemAndCode(system?: string | null, code?: string | null): this;
|
|
32
|
+
getClassSystemAndCode(): string | undefined;
|
|
27
33
|
/** Writes the encounter type. */
|
|
28
34
|
setType(value?: string | null): this;
|
|
35
|
+
setType(codeSystem: string, codeValue: string): this;
|
|
29
36
|
/** Reads the encounter type. */
|
|
30
37
|
getType(): string | undefined;
|
|
38
|
+
getTypeCode(): string | undefined;
|
|
39
|
+
setTypeCodeSystem(system?: string | null): this;
|
|
40
|
+
getTypeCodeSystem(): string | undefined;
|
|
41
|
+
setTypeSystemAndCode(system?: string | null, code?: string | null): this;
|
|
42
|
+
getTypeSystemAndCode(): string | undefined;
|
|
31
43
|
/** Writes the participant list. */
|
|
32
44
|
setParticipantList(values: readonly string[]): this;
|
|
33
45
|
/** Reads the participant list. */
|
|
@@ -46,6 +58,11 @@ export declare class EncounterEntryEditor extends ClinicalResourceEntryEditor {
|
|
|
46
58
|
getPeriodEnd(): string | undefined;
|
|
47
59
|
/** Writes the reason code. */
|
|
48
60
|
setReasonCode(value?: string | null): this;
|
|
61
|
+
setReasonCode(codeSystem: string, codeValue: string): this;
|
|
49
62
|
/** Reads the reason code. */
|
|
50
63
|
getReasonCode(): string | undefined;
|
|
64
|
+
setReasonCodeSystem(system?: string | null): this;
|
|
65
|
+
getReasonCodeSystem(): string | undefined;
|
|
66
|
+
setReasonSystemAndCode(system?: string | null, code?: string | null): this;
|
|
67
|
+
getReasonSystemAndCode(): string | undefined;
|
|
51
68
|
}
|
|
@@ -23,14 +23,22 @@ export class EncounterEntryEditor extends ClinicalResourceEntryEditor {
|
|
|
23
23
|
setStatus(value) { return this.setScalarClaim(EncounterClaim.Status, value); }
|
|
24
24
|
/** Reads the encounter status. */
|
|
25
25
|
getStatus() { return this.getScalarClaim(EncounterClaim.Status); }
|
|
26
|
-
|
|
27
|
-
setClass(value) { return this.setScalarClaim(EncounterClaim.Class, value); }
|
|
26
|
+
setClass(valueOrSystem, codeValue) { return this.setCodingTokenCode(EncounterClaim.Class, valueOrSystem, codeValue); }
|
|
28
27
|
/** Reads the encounter class. */
|
|
29
|
-
getClass() { return this.
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
getClass() { return this.getCodingTokenSystemAndCode(EncounterClaim.Class); }
|
|
29
|
+
getClassCode() { return this.getCodingTokenCode(EncounterClaim.Class); }
|
|
30
|
+
setClassCodeSystem(system) { return this.setCodingTokenSystem(EncounterClaim.Class, system); }
|
|
31
|
+
getClassCodeSystem() { return this.getCodingTokenSystem(EncounterClaim.Class); }
|
|
32
|
+
setClassSystemAndCode(system, code) { return this.setCodingTokenSystemAndCode(EncounterClaim.Class, system, code); }
|
|
33
|
+
getClassSystemAndCode() { return this.getCodingTokenSystemAndCode(EncounterClaim.Class); }
|
|
34
|
+
setType(valueOrSystem, codeValue) { return this.setCodingTokenCode(EncounterClaim.Type, valueOrSystem, codeValue); }
|
|
32
35
|
/** Reads the encounter type. */
|
|
33
|
-
getType() { return this.
|
|
36
|
+
getType() { return this.getCodingTokenSystemAndCode(EncounterClaim.Type); }
|
|
37
|
+
getTypeCode() { return this.getCodingTokenCode(EncounterClaim.Type); }
|
|
38
|
+
setTypeCodeSystem(system) { return this.setCodingTokenSystem(EncounterClaim.Type, system); }
|
|
39
|
+
getTypeCodeSystem() { return this.getCodingTokenSystem(EncounterClaim.Type); }
|
|
40
|
+
setTypeSystemAndCode(system, code) { return this.setCodingTokenSystemAndCode(EncounterClaim.Type, system, code); }
|
|
41
|
+
getTypeSystemAndCode() { return this.getCodingTokenSystemAndCode(EncounterClaim.Type); }
|
|
34
42
|
/** Writes the participant list. */
|
|
35
43
|
setParticipantList(values) { return this.setCsvClaimList(EncounterClaim.Participant, values); }
|
|
36
44
|
/** Reads the participant list. */
|
|
@@ -47,9 +55,12 @@ export class EncounterEntryEditor extends ClinicalResourceEntryEditor {
|
|
|
47
55
|
setPeriodEnd(value) { return this.setScalarClaim(EncounterClaim.PeriodEnd, value); }
|
|
48
56
|
/** Reads the encounter end date/time. */
|
|
49
57
|
getPeriodEnd() { return this.getScalarClaim(EncounterClaim.PeriodEnd); }
|
|
50
|
-
|
|
51
|
-
setReasonCode(value) { return this.setScalarClaim(EncounterClaim.ReasonCode, value); }
|
|
58
|
+
setReasonCode(valueOrSystem, codeValue) { return this.setCodingTokenCode(EncounterClaim.ReasonCode, valueOrSystem, codeValue); }
|
|
52
59
|
/** Reads the reason code. */
|
|
53
|
-
getReasonCode() { return this.
|
|
60
|
+
getReasonCode() { return this.getCodingTokenCode(EncounterClaim.ReasonCode); }
|
|
61
|
+
setReasonCodeSystem(system) { return this.setCodingTokenSystem(EncounterClaim.ReasonCode, system); }
|
|
62
|
+
getReasonCodeSystem() { return this.getCodingTokenSystem(EncounterClaim.ReasonCode); }
|
|
63
|
+
setReasonSystemAndCode(system, code) { return this.setCodingTokenSystemAndCode(EncounterClaim.ReasonCode, system, code); }
|
|
64
|
+
getReasonSystemAndCode() { return this.getCodingTokenSystemAndCode(EncounterClaim.ReasonCode); }
|
|
54
65
|
}
|
|
55
66
|
registerBundleEntryEditor(BundleEditableResourceTypes.encounter, EncounterEntryEditor);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type FamilyRegistrationStatus = 'new_created' | 'resume_required' | 'already_exists' | 'not_found';
|
|
1
|
+
export type FamilyRegistrationStatus = 'new_created' | 'draft_saved' | 'resume_required' | 'already_exists' | 'not_found';
|
|
2
2
|
export type FamilyOrganizationSubjectInfo = Readonly<{
|
|
3
3
|
identifierType?: string;
|
|
4
4
|
identifierValue?: string;
|
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
// Copyright 2026 Antifraud Services Inc. under the Apache License, Version 2.0.
|
|
2
|
+
const FAMILY_REGISTRATION_STATUSES = new Set([
|
|
3
|
+
'new_created',
|
|
4
|
+
'draft_saved',
|
|
5
|
+
'resume_required',
|
|
6
|
+
'already_exists',
|
|
7
|
+
'not_found',
|
|
8
|
+
]);
|
|
2
9
|
function asRecord(value) {
|
|
3
10
|
return value && typeof value === 'object' ? value : {};
|
|
4
11
|
}
|
|
@@ -38,8 +45,12 @@ export function readFamilyOrganizationSummaryFromResponseBody(body) {
|
|
|
38
45
|
...asRecord(entryMeta.claims),
|
|
39
46
|
...asRecord(entryResourceMeta.claims),
|
|
40
47
|
};
|
|
41
|
-
const
|
|
42
|
-
if (!
|
|
48
|
+
const rawStatus = normalizeText(claims['org.schema.FamilyRegistration.status'] ?? claims.status);
|
|
49
|
+
if (!rawStatus || !FAMILY_REGISTRATION_STATUSES.has(rawStatus)) {
|
|
50
|
+
return null;
|
|
51
|
+
}
|
|
52
|
+
const status = rawStatus;
|
|
53
|
+
if (status === 'not_found') {
|
|
43
54
|
return null;
|
|
44
55
|
}
|
|
45
56
|
return {
|
|
@@ -50,7 +61,8 @@ export function readFamilyOrganizationSummaryFromResponseBody(body) {
|
|
|
50
61
|
identifierType: normalizeText(claims['org.schema.Organization.identifier.additionalType']),
|
|
51
62
|
identifierValue: normalizeText(claims['org.schema.Organization.identifier.value']),
|
|
52
63
|
alternateName: normalizeText(claims['org.schema.Organization.alternateName']),
|
|
53
|
-
birthDate: normalizeText(claims['org.schema.
|
|
64
|
+
birthDate: normalizeText(claims['org.schema.Person.birthDate']
|
|
65
|
+
?? claims['org.schema.Organization.foundingDate']),
|
|
54
66
|
ownerTelephone: normalizeText(claims['org.schema.Organization.owner.telephone']),
|
|
55
67
|
},
|
|
56
68
|
missingFields: normalizeStringList(claims['org.schema.FamilyRegistration.missingFields'] ?? claims.missingFields),
|
|
@@ -22,12 +22,23 @@ export declare class FlagEntryEditor extends ClinicalResourceEntryEditor {
|
|
|
22
22
|
getStatus(): string | undefined;
|
|
23
23
|
/** Writes the flag category. */
|
|
24
24
|
setCategory(value?: string | null): this;
|
|
25
|
+
setCategory(codeSystem: string, codeValue: string): this;
|
|
25
26
|
/** Reads the flag category. */
|
|
26
27
|
getCategory(): string | undefined;
|
|
27
|
-
|
|
28
|
+
getCategoryCode(): string | undefined;
|
|
29
|
+
setCategoryCodeSystem(system?: string | null): this;
|
|
30
|
+
getCategoryCodeSystem(): string | undefined;
|
|
31
|
+
setCategorySystemAndCode(system?: string | null, code?: string | null): this;
|
|
32
|
+
getCategorySystemAndCode(): string | undefined;
|
|
33
|
+
/** Writes the flag code from `code`, `system|code`, or separate `system, code` arguments. */
|
|
28
34
|
setCode(value?: string | null): this;
|
|
29
|
-
|
|
35
|
+
setCode(codeSystem: string, codeValue: string): this;
|
|
36
|
+
/** Reads only the flag code value. */
|
|
30
37
|
getCode(): string | undefined;
|
|
38
|
+
setCodeSystem(system?: string | null): this;
|
|
39
|
+
getCodeSystem(): string | undefined;
|
|
40
|
+
setSystemAndCode(system?: string | null, code?: string | null): this;
|
|
41
|
+
getSystemAndCode(): string | undefined;
|
|
31
42
|
/** Writes the local-language alert name projected to FHIR `code.text`. */
|
|
32
43
|
setCodeTextLocal(value?: string | null): this;
|
|
33
44
|
/** Reads the local-language alert name. */
|
|
@@ -23,14 +23,21 @@ export class FlagEntryEditor extends ClinicalResourceEntryEditor {
|
|
|
23
23
|
setStatus(value) { return this.setScalarClaim(FlagClaim.Status, value); }
|
|
24
24
|
/** Reads the flag status. */
|
|
25
25
|
getStatus() { return this.getScalarClaim(FlagClaim.Status); }
|
|
26
|
-
|
|
27
|
-
setCategory(value) { return this.setScalarClaim(FlagClaim.Category, value); }
|
|
26
|
+
setCategory(valueOrSystem, codeValue) { return this.setCodingTokenCode(FlagClaim.Category, valueOrSystem, codeValue); }
|
|
28
27
|
/** Reads the flag category. */
|
|
29
|
-
getCategory() { return this.
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
28
|
+
getCategory() { return this.getCodingTokenSystemAndCode(FlagClaim.Category); }
|
|
29
|
+
getCategoryCode() { return this.getCodingTokenCode(FlagClaim.Category); }
|
|
30
|
+
setCategoryCodeSystem(system) { return this.setCodingTokenSystem(FlagClaim.Category, system); }
|
|
31
|
+
getCategoryCodeSystem() { return this.getCodingTokenSystem(FlagClaim.Category); }
|
|
32
|
+
setCategorySystemAndCode(system, code) { return this.setCodingTokenSystemAndCode(FlagClaim.Category, system, code); }
|
|
33
|
+
getCategorySystemAndCode() { return this.getCodingTokenSystemAndCode(FlagClaim.Category); }
|
|
34
|
+
setCode(valueOrSystem, codeValue) { return this.setCodingTokenCode(FlagClaim.Code, valueOrSystem, codeValue); }
|
|
35
|
+
/** Reads only the flag code value. */
|
|
36
|
+
getCode() { return this.getCodingTokenCode(FlagClaim.Code); }
|
|
37
|
+
setCodeSystem(system) { return this.setCodingTokenSystem(FlagClaim.Code, system); }
|
|
38
|
+
getCodeSystem() { return this.getCodingTokenSystem(FlagClaim.Code); }
|
|
39
|
+
setSystemAndCode(system, code) { return this.setCodingTokenSystemAndCode(FlagClaim.Code, system, code); }
|
|
40
|
+
getSystemAndCode() { return this.getCodingTokenSystemAndCode(FlagClaim.Code); }
|
|
34
41
|
/** Writes the local-language alert name projected to FHIR `code.text`. */
|
|
35
42
|
setCodeTextLocal(value) { return this.setScalarClaim(FlagClaim.CodeText, value); }
|
|
36
43
|
/** Reads the local-language alert name. */
|
|
@@ -24,10 +24,19 @@ export declare class ImmunizationEntryEditor extends ClinicalResourceEntryEditor
|
|
|
24
24
|
setDate(date?: string | null): this;
|
|
25
25
|
/** Reads the administration date. */
|
|
26
26
|
getDate(): string | undefined;
|
|
27
|
-
/** Writes the vaccine code. */
|
|
27
|
+
/** Writes the vaccine code from `code`, `system|code`, or separate `system, code` arguments. */
|
|
28
28
|
setVaccineCode(code?: string | null): this;
|
|
29
|
+
setVaccineCode(codeSystem: string, codeValue: string): this;
|
|
29
30
|
/** Reads the vaccine code. */
|
|
30
31
|
getVaccineCode(): string | undefined;
|
|
32
|
+
/** Replaces only the vaccine coding system. */
|
|
33
|
+
setVaccineCodeSystem(system?: string | null): this;
|
|
34
|
+
/** Reads only the vaccine coding system. */
|
|
35
|
+
getVaccineCodeSystem(): string | undefined;
|
|
36
|
+
/** Writes the vaccine coding system and code value together. */
|
|
37
|
+
setVaccineSystemAndCode(system?: string | null, code?: string | null): this;
|
|
38
|
+
/** Reads the vaccine coding system and code as one compact token. */
|
|
39
|
+
getVaccineSystemAndCode(): string | undefined;
|
|
31
40
|
/** Writes the local vaccine code text. */
|
|
32
41
|
setVaccineCodeTextLocal(text?: string | null): this;
|
|
33
42
|
/** Reads the local vaccine code text. */
|
|
@@ -52,18 +61,51 @@ export declare class ImmunizationEntryEditor extends ClinicalResourceEntryEditor
|
|
|
52
61
|
setPerformerList(references: readonly string[]): this;
|
|
53
62
|
/** Reads the performer list. */
|
|
54
63
|
getPerformerList(): string[];
|
|
55
|
-
/** Writes the reason code. */
|
|
64
|
+
/** Writes the reason code from `code`, `system|code`, or separate `system, code` arguments. */
|
|
56
65
|
setReasonCode(code?: string | null): this;
|
|
66
|
+
setReasonCode(codeSystem: string, codeValue: string): this;
|
|
57
67
|
/** Reads the reason code. */
|
|
58
68
|
getReasonCode(): string | undefined;
|
|
69
|
+
setReasonCodeSystem(system?: string | null): this;
|
|
70
|
+
getReasonCodeSystem(): string | undefined;
|
|
71
|
+
setReasonSystemAndCode(system?: string | null, code?: string | null): this;
|
|
72
|
+
getReasonSystemAndCode(): string | undefined;
|
|
59
73
|
/** Writes the status reason. */
|
|
60
74
|
setStatusReason(reason?: string | null): this;
|
|
75
|
+
setStatusReason(codeSystem: string, codeValue: string): this;
|
|
61
76
|
/** Reads the status reason. */
|
|
62
77
|
getStatusReason(): string | undefined;
|
|
78
|
+
getStatusReasonCode(): string | undefined;
|
|
79
|
+
setStatusReasonCodeSystem(system?: string | null): this;
|
|
80
|
+
getStatusReasonCodeSystem(): string | undefined;
|
|
81
|
+
setStatusReasonSystemAndCode(system?: string | null, code?: string | null): this;
|
|
82
|
+
getStatusReasonSystemAndCode(): string | undefined;
|
|
63
83
|
/** Writes the target disease. */
|
|
64
84
|
setTargetDisease(code?: string | null): this;
|
|
85
|
+
setTargetDisease(codeSystem: string, codeValue: string): this;
|
|
65
86
|
/** Reads the target disease. */
|
|
66
87
|
getTargetDisease(): string | undefined;
|
|
88
|
+
getTargetDiseaseCode(): string | undefined;
|
|
89
|
+
setTargetDiseaseCodeSystem(system?: string | null): this;
|
|
90
|
+
getTargetDiseaseCodeSystem(): string | undefined;
|
|
91
|
+
setTargetDiseaseSystemAndCode(system?: string | null, code?: string | null): this;
|
|
92
|
+
getTargetDiseaseSystemAndCode(): string | undefined;
|
|
93
|
+
setRoute(code?: string | null): this;
|
|
94
|
+
setRoute(codeSystem: string, codeValue: string): this;
|
|
95
|
+
getRoute(): string | undefined;
|
|
96
|
+
getRouteCode(): string | undefined;
|
|
97
|
+
setRouteCodeSystem(system?: string | null): this;
|
|
98
|
+
getRouteCodeSystem(): string | undefined;
|
|
99
|
+
setRouteSystemAndCode(system?: string | null, code?: string | null): this;
|
|
100
|
+
getRouteSystemAndCode(): string | undefined;
|
|
101
|
+
setSite(code?: string | null): this;
|
|
102
|
+
setSite(codeSystem: string, codeValue: string): this;
|
|
103
|
+
getSite(): string | undefined;
|
|
104
|
+
getSiteCode(): string | undefined;
|
|
105
|
+
setSiteCodeSystem(system?: string | null): this;
|
|
106
|
+
getSiteCodeSystem(): string | undefined;
|
|
107
|
+
setSiteSystemAndCode(system?: string | null, code?: string | null): this;
|
|
108
|
+
getSiteSystemAndCode(): string | undefined;
|
|
67
109
|
/** Writes the dose sequence. */
|
|
68
110
|
setDoseSequence(sequence?: string | null): this;
|
|
69
111
|
/** Reads the dose sequence. */
|
|
@@ -45,13 +45,28 @@ export class ImmunizationEntryEditor extends ClinicalResourceEntryEditor {
|
|
|
45
45
|
getDate() {
|
|
46
46
|
return this.getScalarClaim(ImmunizationClaim.Date);
|
|
47
47
|
}
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
return this.setScalarClaim(ImmunizationClaim.VaccineCode, code);
|
|
48
|
+
setVaccineCode(codeOrSystem, codeValue) {
|
|
49
|
+
return this.setCodingTokenCode(ImmunizationClaim.VaccineCode, codeOrSystem, codeValue);
|
|
51
50
|
}
|
|
52
51
|
/** Reads the vaccine code. */
|
|
53
52
|
getVaccineCode() {
|
|
54
|
-
return this.
|
|
53
|
+
return this.getCodingTokenCode(ImmunizationClaim.VaccineCode);
|
|
54
|
+
}
|
|
55
|
+
/** Replaces only the vaccine coding system. */
|
|
56
|
+
setVaccineCodeSystem(system) {
|
|
57
|
+
return this.setCodingTokenSystem(ImmunizationClaim.VaccineCode, system);
|
|
58
|
+
}
|
|
59
|
+
/** Reads only the vaccine coding system. */
|
|
60
|
+
getVaccineCodeSystem() {
|
|
61
|
+
return this.getCodingTokenSystem(ImmunizationClaim.VaccineCode);
|
|
62
|
+
}
|
|
63
|
+
/** Writes the vaccine coding system and code value together. */
|
|
64
|
+
setVaccineSystemAndCode(system, code) {
|
|
65
|
+
return this.setCodingTokenSystemAndCode(ImmunizationClaim.VaccineCode, system, code);
|
|
66
|
+
}
|
|
67
|
+
/** Reads the vaccine coding system and code as one compact token. */
|
|
68
|
+
getVaccineSystemAndCode() {
|
|
69
|
+
return this.getCodingTokenSystemAndCode(ImmunizationClaim.VaccineCode);
|
|
55
70
|
}
|
|
56
71
|
/** Writes the local vaccine code text. */
|
|
57
72
|
setVaccineCodeTextLocal(text) {
|
|
@@ -101,30 +116,55 @@ export class ImmunizationEntryEditor extends ClinicalResourceEntryEditor {
|
|
|
101
116
|
getPerformerList() {
|
|
102
117
|
return this.getCsvClaimList(ImmunizationClaim.Performer);
|
|
103
118
|
}
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
return this.setScalarClaim(ImmunizationClaim.ReasonCode, code);
|
|
119
|
+
setReasonCode(codeOrSystem, codeValue) {
|
|
120
|
+
return this.setCodingTokenCode(ImmunizationClaim.ReasonCode, codeOrSystem, codeValue);
|
|
107
121
|
}
|
|
108
122
|
/** Reads the reason code. */
|
|
109
123
|
getReasonCode() {
|
|
110
|
-
return this.
|
|
124
|
+
return this.getCodingTokenCode(ImmunizationClaim.ReasonCode);
|
|
111
125
|
}
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
126
|
+
setReasonCodeSystem(system) { return this.setCodingTokenSystem(ImmunizationClaim.ReasonCode, system); }
|
|
127
|
+
getReasonCodeSystem() { return this.getCodingTokenSystem(ImmunizationClaim.ReasonCode); }
|
|
128
|
+
setReasonSystemAndCode(system, code) { return this.setCodingTokenSystemAndCode(ImmunizationClaim.ReasonCode, system, code); }
|
|
129
|
+
getReasonSystemAndCode() { return this.getCodingTokenSystemAndCode(ImmunizationClaim.ReasonCode); }
|
|
130
|
+
setStatusReason(reasonOrSystem, codeValue) {
|
|
131
|
+
return this.setCodingTokenCode(ImmunizationClaim.StatusReason, reasonOrSystem, codeValue);
|
|
115
132
|
}
|
|
116
133
|
/** Reads the status reason. */
|
|
117
134
|
getStatusReason() {
|
|
118
|
-
return this.
|
|
135
|
+
return this.getCodingTokenSystemAndCode(ImmunizationClaim.StatusReason);
|
|
119
136
|
}
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
137
|
+
getStatusReasonCode() { return this.getCodingTokenCode(ImmunizationClaim.StatusReason); }
|
|
138
|
+
setStatusReasonCodeSystem(system) { return this.setCodingTokenSystem(ImmunizationClaim.StatusReason, system); }
|
|
139
|
+
getStatusReasonCodeSystem() { return this.getCodingTokenSystem(ImmunizationClaim.StatusReason); }
|
|
140
|
+
setStatusReasonSystemAndCode(system, code) { return this.setCodingTokenSystemAndCode(ImmunizationClaim.StatusReason, system, code); }
|
|
141
|
+
getStatusReasonSystemAndCode() { return this.getCodingTokenSystemAndCode(ImmunizationClaim.StatusReason); }
|
|
142
|
+
setTargetDisease(codeOrSystem, codeValue) {
|
|
143
|
+
return this.setCodingTokenCode(ImmunizationClaim.TargetDisease, codeOrSystem, codeValue);
|
|
123
144
|
}
|
|
124
145
|
/** Reads the target disease. */
|
|
125
146
|
getTargetDisease() {
|
|
126
|
-
return this.
|
|
127
|
-
}
|
|
147
|
+
return this.getCodingTokenSystemAndCode(ImmunizationClaim.TargetDisease);
|
|
148
|
+
}
|
|
149
|
+
getTargetDiseaseCode() { return this.getCodingTokenCode(ImmunizationClaim.TargetDisease); }
|
|
150
|
+
setTargetDiseaseCodeSystem(system) { return this.setCodingTokenSystem(ImmunizationClaim.TargetDisease, system); }
|
|
151
|
+
getTargetDiseaseCodeSystem() { return this.getCodingTokenSystem(ImmunizationClaim.TargetDisease); }
|
|
152
|
+
setTargetDiseaseSystemAndCode(system, code) { return this.setCodingTokenSystemAndCode(ImmunizationClaim.TargetDisease, system, code); }
|
|
153
|
+
getTargetDiseaseSystemAndCode() { return this.getCodingTokenSystemAndCode(ImmunizationClaim.TargetDisease); }
|
|
154
|
+
setRoute(codeOrSystem, codeValue) { return this.setCodingTokenCode(ImmunizationClaim.Route, codeOrSystem, codeValue); }
|
|
155
|
+
getRoute() { return this.getCodingTokenSystemAndCode(ImmunizationClaim.Route); }
|
|
156
|
+
getRouteCode() { return this.getCodingTokenCode(ImmunizationClaim.Route); }
|
|
157
|
+
setRouteCodeSystem(system) { return this.setCodingTokenSystem(ImmunizationClaim.Route, system); }
|
|
158
|
+
getRouteCodeSystem() { return this.getCodingTokenSystem(ImmunizationClaim.Route); }
|
|
159
|
+
setRouteSystemAndCode(system, code) { return this.setCodingTokenSystemAndCode(ImmunizationClaim.Route, system, code); }
|
|
160
|
+
getRouteSystemAndCode() { return this.getCodingTokenSystemAndCode(ImmunizationClaim.Route); }
|
|
161
|
+
setSite(codeOrSystem, codeValue) { return this.setCodingTokenCode(ImmunizationClaim.Site, codeOrSystem, codeValue); }
|
|
162
|
+
getSite() { return this.getCodingTokenSystemAndCode(ImmunizationClaim.Site); }
|
|
163
|
+
getSiteCode() { return this.getCodingTokenCode(ImmunizationClaim.Site); }
|
|
164
|
+
setSiteCodeSystem(system) { return this.setCodingTokenSystem(ImmunizationClaim.Site, system); }
|
|
165
|
+
getSiteCodeSystem() { return this.getCodingTokenSystem(ImmunizationClaim.Site); }
|
|
166
|
+
setSiteSystemAndCode(system, code) { return this.setCodingTokenSystemAndCode(ImmunizationClaim.Site, system, code); }
|
|
167
|
+
getSiteSystemAndCode() { return this.getCodingTokenSystemAndCode(ImmunizationClaim.Site); }
|
|
128
168
|
/** Writes the dose sequence. */
|
|
129
169
|
setDoseSequence(sequence) {
|
|
130
170
|
return this.setScalarClaim(ImmunizationClaim.DoseSequence, sequence);
|
|
@@ -31,10 +31,15 @@ export declare class MedicationStatementEntryEditor extends ClinicalResourceEntr
|
|
|
31
31
|
setEffective(value?: string | null): this;
|
|
32
32
|
/** Returns the effective date or period token. */
|
|
33
33
|
getEffective(): string | undefined;
|
|
34
|
-
/** Sets the
|
|
34
|
+
/** Sets the medication code from `code`, `system|code`, or separate `system, code` arguments. */
|
|
35
35
|
setCode(code?: string | null): this;
|
|
36
|
-
|
|
36
|
+
setCode(codeSystem: string, codeValue: string): this;
|
|
37
|
+
/** Returns only the medication code value. */
|
|
37
38
|
getCode(): string | undefined;
|
|
39
|
+
setCodeSystem(system?: string | null): this;
|
|
40
|
+
getCodeSystem(): string | undefined;
|
|
41
|
+
setSystemAndCode(system?: string | null, code?: string | null): this;
|
|
42
|
+
getSystemAndCode(): string | undefined;
|
|
38
43
|
/** Sets the official `medication` reference SearchParameter value for `medication.reference`. */
|
|
39
44
|
setMedication(reference?: string | null): this;
|
|
40
45
|
/** Returns the official `medication` reference SearchParameter value. */
|
|
@@ -55,10 +60,14 @@ export declare class MedicationStatementEntryEditor extends ClinicalResourceEntr
|
|
|
55
60
|
setAdherence(value?: string | null): this;
|
|
56
61
|
/** Returns the official R5 `adherence` token SearchParameter value. */
|
|
57
62
|
getAdherence(): string | undefined;
|
|
58
|
-
/** Convenience
|
|
63
|
+
/** Convenience accessor for the R5 adherence coding. */
|
|
59
64
|
setAdherenceCode(value?: string | null): this;
|
|
60
|
-
|
|
65
|
+
setAdherenceCode(codeSystem: string, codeValue: string): this;
|
|
61
66
|
getAdherenceCode(): string | undefined;
|
|
67
|
+
setAdherenceCodeSystem(system?: string | null): this;
|
|
68
|
+
getAdherenceCodeSystem(): string | undefined;
|
|
69
|
+
setAdherenceSystemAndCode(system?: string | null, code?: string | null): this;
|
|
70
|
+
getAdherenceSystemAndCode(): string | undefined;
|
|
62
71
|
/** Sets local/manual text for the R5 adherence CodeableConcept. */
|
|
63
72
|
setAdherenceCodeTextLocal(value?: string | null): this;
|
|
64
73
|
/** Returns local/manual text for the R5 adherence CodeableConcept. */
|
|
@@ -83,10 +92,24 @@ export declare class MedicationStatementEntryEditor extends ClinicalResourceEntr
|
|
|
83
92
|
setDoseQuantityValue(value?: number | null): this;
|
|
84
93
|
/** Returns the numeric dose quantity value. */
|
|
85
94
|
getDoseQuantityValue(): number | undefined;
|
|
86
|
-
/** Sets the dose quantity unit
|
|
95
|
+
/** Sets the dose quantity unit from `code`, `system|code`, or separate `system, code` arguments. */
|
|
87
96
|
setDoseQuantityUnit(value?: string | null): this;
|
|
88
|
-
|
|
97
|
+
setDoseQuantityUnit(codeSystem: string, codeValue: string): this;
|
|
98
|
+
/** Returns the compact dose quantity unit token. */
|
|
89
99
|
getDoseQuantityUnit(): string | undefined;
|
|
100
|
+
getDoseQuantityUnitCode(): string | undefined;
|
|
101
|
+
setDoseQuantityUnitCodeSystem(system?: string | null): this;
|
|
102
|
+
getDoseQuantityUnitCodeSystem(): string | undefined;
|
|
103
|
+
setDoseQuantityUnitSystemAndCode(system?: string | null, code?: string | null): this;
|
|
104
|
+
getDoseQuantityUnitSystemAndCode(): string | undefined;
|
|
105
|
+
setDosageRoute(value?: string | null): this;
|
|
106
|
+
setDosageRoute(codeSystem: string, codeValue: string): this;
|
|
107
|
+
getDosageRoute(): string | undefined;
|
|
108
|
+
getDosageRouteCode(): string | undefined;
|
|
109
|
+
setDosageRouteCodeSystem(system?: string | null): this;
|
|
110
|
+
getDosageRouteCodeSystem(): string | undefined;
|
|
111
|
+
setDosageRouteSystemAndCode(system?: string | null, code?: string | null): this;
|
|
112
|
+
getDosageRouteSystemAndCode(): string | undefined;
|
|
90
113
|
/** Sets the timing frequency for structured dosage authoring. */
|
|
91
114
|
setTimingFrequency(value?: number | null): this;
|
|
92
115
|
/** Returns the timing frequency. */
|
|
@@ -34,10 +34,13 @@ export class MedicationStatementEntryEditor extends ClinicalResourceEntryEditor
|
|
|
34
34
|
setEffective(value) { return this.setScalarClaim(MedicationStatementClaim.Effective, value); }
|
|
35
35
|
/** Returns the effective date or period token. */
|
|
36
36
|
getEffective() { return this.getScalarClaim(MedicationStatementClaim.Effective); }
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
37
|
+
setCode(codeOrSystem, codeValue) { return this.setCodingTokenCode(MedicationStatementClaim.Code, codeOrSystem, codeValue); }
|
|
38
|
+
/** Returns only the medication code value. */
|
|
39
|
+
getCode() { return this.getCodingTokenCode(MedicationStatementClaim.Code); }
|
|
40
|
+
setCodeSystem(system) { return this.setCodingTokenSystem(MedicationStatementClaim.Code, system); }
|
|
41
|
+
getCodeSystem() { return this.getCodingTokenSystem(MedicationStatementClaim.Code); }
|
|
42
|
+
setSystemAndCode(system, code) { return this.setCodingTokenSystemAndCode(MedicationStatementClaim.Code, system, code); }
|
|
43
|
+
getSystemAndCode() { return this.getCodingTokenSystemAndCode(MedicationStatementClaim.Code); }
|
|
41
44
|
/** Sets the official `medication` reference SearchParameter value for `medication.reference`. */
|
|
42
45
|
setMedication(reference) { return this.setScalarClaim(MedicationStatementClaim.Medication, reference); }
|
|
43
46
|
/** Returns the official `medication` reference SearchParameter value. */
|
|
@@ -61,10 +64,12 @@ export class MedicationStatementEntryEditor extends ClinicalResourceEntryEditor
|
|
|
61
64
|
setAdherence(value) { return this.setScalarClaim(MedicationStatementClaim.Adherence, value); }
|
|
62
65
|
/** Returns the official R5 `adherence` token SearchParameter value. */
|
|
63
66
|
getAdherence() { return this.getScalarClaim(MedicationStatementClaim.Adherence); }
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
67
|
+
setAdherenceCode(valueOrSystem, codeValue) { return this.setCodingTokenCode(MedicationStatementClaim.Adherence, valueOrSystem, codeValue); }
|
|
68
|
+
getAdherenceCode() { return this.getCodingTokenCode(MedicationStatementClaim.Adherence); }
|
|
69
|
+
setAdherenceCodeSystem(system) { return this.setCodingTokenSystem(MedicationStatementClaim.Adherence, system); }
|
|
70
|
+
getAdherenceCodeSystem() { return this.getCodingTokenSystem(MedicationStatementClaim.Adherence); }
|
|
71
|
+
setAdherenceSystemAndCode(system, code) { return this.setCodingTokenSystemAndCode(MedicationStatementClaim.Adherence, system, code); }
|
|
72
|
+
getAdherenceSystemAndCode() { return this.getCodingTokenSystemAndCode(MedicationStatementClaim.Adherence); }
|
|
68
73
|
/** Sets local/manual text for the R5 adherence CodeableConcept. */
|
|
69
74
|
setAdherenceCodeTextLocal(value) { return this.setScalarClaim(MedicationStatementClaim.AdherenceText, value); }
|
|
70
75
|
/** Returns local/manual text for the R5 adherence CodeableConcept. */
|
|
@@ -89,10 +94,21 @@ export class MedicationStatementEntryEditor extends ClinicalResourceEntryEditor
|
|
|
89
94
|
setDoseQuantityValue(value) { return this.setNumberClaim(MedicationStatementClaim.DoseQuantityValue, value); }
|
|
90
95
|
/** Returns the numeric dose quantity value. */
|
|
91
96
|
getDoseQuantityValue() { return this.getNumberClaim(MedicationStatementClaim.DoseQuantityValue); }
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
97
|
+
setDoseQuantityUnit(valueOrSystem, codeValue) { return this.setCodingTokenCode(MedicationStatementClaim.DoseQuantityUnit, valueOrSystem, codeValue); }
|
|
98
|
+
/** Returns the compact dose quantity unit token. */
|
|
99
|
+
getDoseQuantityUnit() { return this.getCodingTokenSystemAndCode(MedicationStatementClaim.DoseQuantityUnit); }
|
|
100
|
+
getDoseQuantityUnitCode() { return this.getCodingTokenCode(MedicationStatementClaim.DoseQuantityUnit); }
|
|
101
|
+
setDoseQuantityUnitCodeSystem(system) { return this.setCodingTokenSystem(MedicationStatementClaim.DoseQuantityUnit, system); }
|
|
102
|
+
getDoseQuantityUnitCodeSystem() { return this.getCodingTokenSystem(MedicationStatementClaim.DoseQuantityUnit); }
|
|
103
|
+
setDoseQuantityUnitSystemAndCode(system, code) { return this.setCodingTokenSystemAndCode(MedicationStatementClaim.DoseQuantityUnit, system, code); }
|
|
104
|
+
getDoseQuantityUnitSystemAndCode() { return this.getCodingTokenSystemAndCode(MedicationStatementClaim.DoseQuantityUnit); }
|
|
105
|
+
setDosageRoute(valueOrSystem, codeValue) { return this.setCodingTokenCode(MedicationStatementClaim.DosageRoute, valueOrSystem, codeValue); }
|
|
106
|
+
getDosageRoute() { return this.getCodingTokenSystemAndCode(MedicationStatementClaim.DosageRoute); }
|
|
107
|
+
getDosageRouteCode() { return this.getCodingTokenCode(MedicationStatementClaim.DosageRoute); }
|
|
108
|
+
setDosageRouteCodeSystem(system) { return this.setCodingTokenSystem(MedicationStatementClaim.DosageRoute, system); }
|
|
109
|
+
getDosageRouteCodeSystem() { return this.getCodingTokenSystem(MedicationStatementClaim.DosageRoute); }
|
|
110
|
+
setDosageRouteSystemAndCode(system, code) { return this.setCodingTokenSystemAndCode(MedicationStatementClaim.DosageRoute, system, code); }
|
|
111
|
+
getDosageRouteSystemAndCode() { return this.getCodingTokenSystemAndCode(MedicationStatementClaim.DosageRoute); }
|
|
96
112
|
/** Sets the timing frequency for structured dosage authoring. */
|
|
97
113
|
setTimingFrequency(value) { return this.setNumberClaim(MedicationStatementClaim.TimingFrequency, value); }
|
|
98
114
|
/** Returns the timing frequency. */
|
|
@@ -15,11 +15,14 @@ import { ClinicalResourceEntryEditor } from './clinical-resource-entry-editor.js
|
|
|
15
15
|
*/
|
|
16
16
|
export declare class ObservationComponentEntryEditor extends ClinicalResourceEntryEditor {
|
|
17
17
|
setCode(code: CodingDescriptor | string): this;
|
|
18
|
+
setCode(codeSystem: string, codeValue: string): this;
|
|
18
19
|
getCode(): string | undefined;
|
|
19
20
|
setCodeSystem(system: string): this;
|
|
20
21
|
getCodeSystem(): string | undefined;
|
|
21
22
|
setCodeValue(value: string): this;
|
|
22
23
|
getCodeValue(): string | undefined;
|
|
24
|
+
setSystemAndCode(system?: string | null, code?: string | null): this;
|
|
25
|
+
getSystemAndCode(): string | undefined;
|
|
23
26
|
setCodeDisplay(display: string): this;
|
|
24
27
|
getCodeDisplay(): string | undefined;
|
|
25
28
|
/**
|
|
@@ -36,6 +39,14 @@ export declare class ObservationComponentEntryEditor extends ClinicalResourceEnt
|
|
|
36
39
|
* English/international display when present.
|
|
37
40
|
*/
|
|
38
41
|
getCodeTextLocal(): string | undefined;
|
|
42
|
+
setValueConcept(value?: string | null): this;
|
|
43
|
+
setValueConcept(codeSystem: string, codeValue: string): this;
|
|
44
|
+
getValueConcept(): string | undefined;
|
|
45
|
+
getValueConceptCode(): string | undefined;
|
|
46
|
+
setValueConceptCodeSystem(system?: string | null): this;
|
|
47
|
+
getValueConceptCodeSystem(): string | undefined;
|
|
48
|
+
setValueConceptSystemAndCode(system?: string | null, code?: string | null): this;
|
|
49
|
+
getValueConceptSystemAndCode(): string | undefined;
|
|
39
50
|
/** Compatibility alias for older examples/tests. Prefer `setCodeTextLocal(...)`. */
|
|
40
51
|
setLocalText(text: string): this;
|
|
41
52
|
/** Compatibility alias for older examples/tests. Prefer `getCodeTextLocal()`. */
|
|
@@ -43,7 +54,13 @@ export declare class ObservationComponentEntryEditor extends ClinicalResourceEnt
|
|
|
43
54
|
setValueQuantityNumber(value: number): this;
|
|
44
55
|
getValueQuantityNumber(): number | undefined;
|
|
45
56
|
setValueQuantityUnit(unit: CodingDescriptor | string): this;
|
|
57
|
+
setValueQuantityUnit(codeSystem: string, codeValue: string): this;
|
|
46
58
|
getValueQuantityUnit(): string | undefined;
|
|
59
|
+
getValueQuantityUnitCode(): string | undefined;
|
|
60
|
+
setValueQuantityUnitCodeSystem(system?: string | null): this;
|
|
61
|
+
getValueQuantityUnitCodeSystem(): string | undefined;
|
|
62
|
+
setValueQuantityUnitSystemAndCode(system?: string | null, code?: string | null): this;
|
|
63
|
+
getValueQuantityUnitSystemAndCode(): string | undefined;
|
|
47
64
|
setValueString(value: string): this;
|
|
48
65
|
getValueString(): string | undefined;
|
|
49
66
|
setValueDate(value: string): this;
|