Skip to content

Commit 53d2e23

Browse files
author
Daniel Schröder
committed
removed visus method & updated ui
1 parent 5f13d74 commit 53d2e23

File tree

2 files changed

+19
-28
lines changed

2 files changed

+19
-28
lines changed

src/visus-component.ts

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,12 +143,14 @@ export class VisusComponent extends LitElement {
143143
class="sphere-right input is-small is-small-input"
144144
type="number"
145145
placeholder="sphere"
146+
step="0.25"
146147
@input="${this._updateFormData}"
147148
/>
148149
<input
149150
class="cylinder-right input is-small is-small-input"
150151
type="number"
151152
placeholder="cylinder"
153+
step="0.25"
152154
@input="${this._updateFormData}"
153155
/>
154156
<input
@@ -171,11 +173,17 @@ export class VisusComponent extends LitElement {
171173
</select>
172174
</div>
173175
</div>
176+
</div>
177+
<div class="inputs-inline">
178+
<label class="checkbox">
179+
<input class="mydriasis-left" type="checkbox" @input="${this._updateFormData}"/>
180+
<span class="checkbox-label"> Mydriasis</span>
181+
</label>
174182
<label class="checkbox">
175-
<input class="pinhole-right" type="checkbox" @input="${this._updateFormData}"/>
183+
<input class="pinhole-left" type="checkbox" @input="${this._updateFormData}"/>
176184
<span class="checkbox-label"> Stenop.</span>
177185
</label>
178-
</div>
186+
</div>
179187
</div>
180188
181189
<!-- Left Eye -->
@@ -186,12 +194,14 @@ export class VisusComponent extends LitElement {
186194
class="sphere-left input is-small is-small-input"
187195
type="number"
188196
placeholder="sphere"
197+
step="0.25"
189198
@input="${this._updateFormData}"
190199
/>
191200
<input
192201
class="cylinder-left input is-small is-small-input"
193202
type="number"
194203
placeholder="cylinder"
204+
step="0.25"
195205
@input="${this._updateFormData}"
196206
/>
197207
<input
@@ -214,11 +224,17 @@ export class VisusComponent extends LitElement {
214224
</select>
215225
</div>
216226
</div>
227+
</div>
228+
<div class="inputs-inline">
229+
<label class="checkbox">
230+
<input class="mydriasis-left" type="checkbox" @input="${this._updateFormData}"/>
231+
<span class="checkbox-label"> Mydriasis</span>
232+
</label>
217233
<label class="checkbox">
218234
<input class="pinhole-left" type="checkbox" @input="${this._updateFormData}"/>
219235
<span class="checkbox-label"> Stenop.</span>
220236
</label>
221-
</div>
237+
</div>
222238
</div>
223239
</div>
224240
<button

src/visus-to-fhir.ts

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,6 @@ export function visus2Fhir(data: VisusData): Observation[] {
117117
bodySite: {
118118
coding: [snomed("1290041000", "Entire left eye proper (body structure)")],
119119
},
120-
...getVisusMethod(data.optotype),
121120
component: [
122121
getCorrectionMethod(data.correctionMethod, true, data.leftEye.lens),
123122
{
@@ -159,7 +158,6 @@ export function visus2Fhir(data: VisusData): Observation[] {
159158
bodySite: {
160159
coding: [snomed("1290043002", "Entire right eye proper (body structure)")],
161160
},
162-
...getVisusMethod(data.optotype),
163161
component: [
164162
getCorrectionMethod(data.correctionMethod, false, data.rightEye.lens),
165163
{
@@ -223,29 +221,6 @@ function getVisusValue(visus: string): Partial<ObservationArgs> {
223221
throw new TypeError(`Der folgende Wert für den Visus ist ungültig: ${visus}`);
224222
}
225223

226-
function getVisusMethod(optotype: Optotype): Partial<ObservationArgs> {
227-
const Optotyp2Method = {
228-
Snellen: [snomed("400913005", "Snellen chart (physical object)")],
229-
Chart: [snomed("400914004", "ETDRS visual acuity chart")],
230-
Allen: [snomed("400915003", "Allen cards (physical object)")],
231-
HOTV: [snomed("400916002", "HOTV cards (physical object)")],
232-
// ?: [snomed("416307006", "Laser inferometer for potential acuity testing (physical object)")],
233-
// ?: [snomed("417283003", "Potential acuity meter (physical object)")],
234-
// ?: [snomed("418295001", "Near card (physical object)")],
235-
// ?: [snomed("418570001", "Accommodative rule (physical object)")],
236-
// ?: [snomed("421763006", "Visual acuity chart (physical object)")],
237-
};
238-
239-
return {
240-
method: {
241-
coding:
242-
optotype in Optotyp2Method
243-
? Optotyp2Method[optotype]
244-
: [snomed("421763006", "Visual acuity chart (physical object)")],
245-
},
246-
};
247-
}
248-
249224
function getCorrectionMethod(
250225
correctionMethod: CorrectionMethod,
251226
leftEye: boolean,

0 commit comments

Comments
 (0)