gdc-common-utils-ts 2.9.14 → 2.9.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/convert/convert-shared.js +1 -1
- package/dist/examples/shared.d.ts +2 -0
- package/dist/examples/shared.js +3 -1
- 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/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
|
@@ -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);
|
|
@@ -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;
|
|
@@ -8,32 +8,46 @@ import { ClinicalResourceEntryEditor } from './clinical-resource-entry-editor.js
|
|
|
8
8
|
* resource at a time without exposing bundle-internal plumbing.
|
|
9
9
|
*/
|
|
10
10
|
export class ObservationComponentEntryEditor extends ClinicalResourceEntryEditor {
|
|
11
|
-
setCode(
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
this.setClaim(ObservationClaim.
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
11
|
+
setCode(codeOrSystem, codeValue) {
|
|
12
|
+
if (typeof codeOrSystem !== 'string') {
|
|
13
|
+
this.setCodingTokenSystemAndCode(ObservationClaim.Code, codeOrSystem.system, codeOrSystem.code);
|
|
14
|
+
this.setClaim(ObservationClaim.CodeSystem, codeOrSystem.system);
|
|
15
|
+
this.setClaim(ObservationClaim.CodeValue, codeOrSystem.code);
|
|
16
|
+
if (codeOrSystem.display)
|
|
17
|
+
this.setClaim(ObservationClaim.CodeDisplay, codeOrSystem.display);
|
|
18
|
+
return this;
|
|
20
19
|
}
|
|
20
|
+
this.setCodingTokenCode(ObservationClaim.Code, codeOrSystem, codeValue);
|
|
21
|
+
this.setClaim(ObservationClaim.CodeSystem, this.getCodingTokenSystem(ObservationClaim.Code) || '');
|
|
22
|
+
this.setClaim(ObservationClaim.CodeValue, this.getCodingTokenCode(ObservationClaim.Code) || '');
|
|
21
23
|
return this;
|
|
22
24
|
}
|
|
23
25
|
getCode() {
|
|
24
|
-
return normalizeOptionalIdentifier(this.getClaim(ObservationClaim.
|
|
26
|
+
return normalizeOptionalIdentifier(this.getClaim(ObservationClaim.CodeValue))
|
|
27
|
+
|| this.getCodingTokenCode(ObservationClaim.Code);
|
|
25
28
|
}
|
|
26
29
|
setCodeSystem(system) {
|
|
30
|
+
this.setCodingTokenSystem(ObservationClaim.Code, system);
|
|
27
31
|
return this.setClaim(ObservationClaim.CodeSystem, String(system).trim());
|
|
28
32
|
}
|
|
29
33
|
getCodeSystem() {
|
|
30
34
|
return normalizeOptionalIdentifier(this.getClaim(ObservationClaim.CodeSystem));
|
|
31
35
|
}
|
|
32
36
|
setCodeValue(value) {
|
|
37
|
+
this.setCodingTokenCode(ObservationClaim.Code, value);
|
|
33
38
|
return this.setClaim(ObservationClaim.CodeValue, String(value).trim());
|
|
34
39
|
}
|
|
35
40
|
getCodeValue() {
|
|
36
|
-
return
|
|
41
|
+
return this.getCode();
|
|
42
|
+
}
|
|
43
|
+
setSystemAndCode(system, code) {
|
|
44
|
+
this.setCodingTokenSystemAndCode(ObservationClaim.Code, system, code);
|
|
45
|
+
this.setClaim(ObservationClaim.CodeSystem, String(system || '').trim());
|
|
46
|
+
this.setClaim(ObservationClaim.CodeValue, String(code || '').trim());
|
|
47
|
+
return this;
|
|
48
|
+
}
|
|
49
|
+
getSystemAndCode() {
|
|
50
|
+
return this.getCodingTokenSystemAndCode(ObservationClaim.Code);
|
|
37
51
|
}
|
|
38
52
|
setCodeDisplay(display) {
|
|
39
53
|
return this.setClaim(ObservationClaim.CodeDisplay, String(display).trim());
|
|
@@ -59,6 +73,13 @@ export class ObservationComponentEntryEditor extends ClinicalResourceEntryEditor
|
|
|
59
73
|
getCodeTextLocal() {
|
|
60
74
|
return normalizeOptionalIdentifier(this.getClaim(ObservationClaim.CodeText));
|
|
61
75
|
}
|
|
76
|
+
setValueConcept(valueOrSystem, codeValue) { return this.setCodingTokenCode(ObservationClaim.ValueConcept, valueOrSystem, codeValue); }
|
|
77
|
+
getValueConcept() { return this.getCodingTokenSystemAndCode(ObservationClaim.ValueConcept); }
|
|
78
|
+
getValueConceptCode() { return this.getCodingTokenCode(ObservationClaim.ValueConcept); }
|
|
79
|
+
setValueConceptCodeSystem(system) { return this.setCodingTokenSystem(ObservationClaim.ValueConcept, system); }
|
|
80
|
+
getValueConceptCodeSystem() { return this.getCodingTokenSystem(ObservationClaim.ValueConcept); }
|
|
81
|
+
setValueConceptSystemAndCode(system, code) { return this.setCodingTokenSystemAndCode(ObservationClaim.ValueConcept, system, code); }
|
|
82
|
+
getValueConceptSystemAndCode() { return this.getCodingTokenSystemAndCode(ObservationClaim.ValueConcept); }
|
|
62
83
|
/** Compatibility alias for older examples/tests. Prefer `setCodeTextLocal(...)`. */
|
|
63
84
|
setLocalText(text) {
|
|
64
85
|
return this.setCodeTextLocal(text);
|
|
@@ -77,13 +98,19 @@ export class ObservationComponentEntryEditor extends ClinicalResourceEntryEditor
|
|
|
77
98
|
const numeric = Number(raw);
|
|
78
99
|
return Number.isFinite(numeric) ? numeric : undefined;
|
|
79
100
|
}
|
|
80
|
-
setValueQuantityUnit(
|
|
81
|
-
|
|
82
|
-
|
|
101
|
+
setValueQuantityUnit(unitOrSystem, codeValue) {
|
|
102
|
+
return typeof unitOrSystem === 'string'
|
|
103
|
+
? this.setCodingTokenCode(ObservationClaim.ValueQuantityUnit, unitOrSystem, codeValue)
|
|
104
|
+
: this.setCodingTokenSystemAndCode(ObservationClaim.ValueQuantityUnit, unitOrSystem.system, unitOrSystem.code);
|
|
83
105
|
}
|
|
84
106
|
getValueQuantityUnit() {
|
|
85
|
-
return
|
|
107
|
+
return this.getCodingTokenSystemAndCode(ObservationClaim.ValueQuantityUnit);
|
|
86
108
|
}
|
|
109
|
+
getValueQuantityUnitCode() { return this.getCodingTokenCode(ObservationClaim.ValueQuantityUnit); }
|
|
110
|
+
setValueQuantityUnitCodeSystem(system) { return this.setCodingTokenSystem(ObservationClaim.ValueQuantityUnit, system); }
|
|
111
|
+
getValueQuantityUnitCodeSystem() { return this.getCodingTokenSystem(ObservationClaim.ValueQuantityUnit); }
|
|
112
|
+
setValueQuantityUnitSystemAndCode(system, code) { return this.setCodingTokenSystemAndCode(ObservationClaim.ValueQuantityUnit, system, code); }
|
|
113
|
+
getValueQuantityUnitSystemAndCode() { return this.getCodingTokenSystemAndCode(ObservationClaim.ValueQuantityUnit); }
|
|
87
114
|
setValueString(value) {
|
|
88
115
|
return this.setClaim(ObservationClaim.ValueString, String(value).trim());
|
|
89
116
|
}
|
|
@@ -6,6 +6,14 @@ import { VitalSignEntryEditor } from './vital-sign-entry-editor.js';
|
|
|
6
6
|
* accessors in a bundle authoring flow.
|
|
7
7
|
*/
|
|
8
8
|
export declare class ObservationEntryEditor extends VitalSignEntryEditor {
|
|
9
|
+
setMethod(value?: string | null): this;
|
|
10
|
+
setMethod(codeSystem: string, codeValue: string): this;
|
|
11
|
+
getMethod(): string | undefined;
|
|
12
|
+
getMethodCode(): string | undefined;
|
|
13
|
+
setMethodCodeSystem(system?: string | null): this;
|
|
14
|
+
getMethodCodeSystem(): string | undefined;
|
|
15
|
+
setMethodSystemAndCode(system?: string | null, code?: string | null): this;
|
|
16
|
+
getMethodSystemAndCode(): string | undefined;
|
|
9
17
|
/** Writes the based-on reference. */
|
|
10
18
|
setBasedOn(reference: string): this;
|
|
11
19
|
/** Reads the based-on reference. */
|
|
@@ -18,6 +18,13 @@ import { registerBundleEntryEditor } from './bundle-editor-registry.js';
|
|
|
18
18
|
* accessors in a bundle authoring flow.
|
|
19
19
|
*/
|
|
20
20
|
export class ObservationEntryEditor extends VitalSignEntryEditor {
|
|
21
|
+
setMethod(valueOrSystem, codeValue) { return this.setCodingTokenCode(ObservationClaim.Method, valueOrSystem, codeValue); }
|
|
22
|
+
getMethod() { return this.getCodingTokenSystemAndCode(ObservationClaim.Method); }
|
|
23
|
+
getMethodCode() { return this.getCodingTokenCode(ObservationClaim.Method); }
|
|
24
|
+
setMethodCodeSystem(system) { return this.setCodingTokenSystem(ObservationClaim.Method, system); }
|
|
25
|
+
getMethodCodeSystem() { return this.getCodingTokenSystem(ObservationClaim.Method); }
|
|
26
|
+
setMethodSystemAndCode(system, code) { return this.setCodingTokenSystemAndCode(ObservationClaim.Method, system, code); }
|
|
27
|
+
getMethodSystemAndCode() { return this.getCodingTokenSystemAndCode(ObservationClaim.Method); }
|
|
21
28
|
/** Writes the based-on reference. */
|
|
22
29
|
setBasedOn(reference) {
|
|
23
30
|
return this.setClaim(ObservationClaim.BasedOn, String(reference).trim());
|