Skip to content

Commit

Permalink
fix: 🐛 migrated transform from medblocks-ui vscode-extension
Browse files Browse the repository at this point in the history
  • Loading branch information
ATHULKNAIR committed Nov 5, 2021
1 parent 732f93e commit 3c70930
Show file tree
Hide file tree
Showing 11 changed files with 13,467 additions and 10 deletions.
129 changes: 125 additions & 4 deletions demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@

<body>
<mb-form>
<div>
<!-- <div>
<mb-duration year required label="Duration"></mb-duration>
</div>
</div> -->
<!-- <div>
<mb-quantity required label="Somrhting"></mb-quantity>
</div> -->
Expand Down Expand Up @@ -102,11 +102,133 @@
<mb-percent required label="mark" path="percent"></mb-percent>
</div> -->

<mb-context path="ncd/context/start_time"></mb-context>
<mb-context path="ncd/context/setting"></mb-context>
<mb-quantity default="Cel" path="ncd/body_temperature/any_event:0/temperature" label="Temperature">
<mb-unit unit="Cel" label="Cel"></mb-unit>
</mb-quantity>
<mb-context path="ncd/body_temperature/any_event:0/time"></mb-context>
<mb-context path="ncd/body_temperature/language"></mb-context>
<mb-context path="ncd/body_temperature/encoding"></mb-context>
<mb-context path="ncd/body_temperature/subject"></mb-context>
<mb-quantity default="mm[Hg]" path="ncd/blood_pressure/any_event:0/systolic" label="Systolic">
<mb-unit unit="mm[Hg]" label="mm[Hg]"></mb-unit>
</mb-quantity>
<mb-quantity default="mm[Hg]" path="ncd/blood_pressure/any_event:0/diastolic" label="Diastolic">
<mb-unit unit="mm[Hg]" label="mm[Hg]"></mb-unit>
</mb-quantity>
<mb-context path="ncd/blood_pressure/any_event:0/time"></mb-context>
<mb-context path="ncd/blood_pressure/language"></mb-context>
<mb-context path="ncd/blood_pressure/encoding"></mb-context>
<mb-context path="ncd/blood_pressure/subject"></mb-context>
<mb-quantity default="/min" path="ncd/pulse_heart_beat/any_event:0/rate" label="Rate">
<mb-unit unit="/min" label="/min"></mb-unit>
</mb-quantity>
<mb-select path="ncd/pulse_heart_beat/any_event:0/regularity" label="Regularity">
<mb-option value="at0006" label="Regular"></mb-option>
<mb-option value="at1028" label="Irregular"></mb-option>
</mb-select>
<mb-context path="ncd/pulse_heart_beat/any_event:0/time"></mb-context>
<mb-context path="ncd/pulse_heart_beat/language"></mb-context>
<mb-context path="ncd/pulse_heart_beat/encoding"></mb-context>
<mb-context path="ncd/pulse_heart_beat/subject"></mb-context>
<mb-quantity default="cm" path="ncd/height_length/any_event:0/height_length" label="Height/Length">
<mb-unit unit="cm" label="cm"></mb-unit>
<mb-unit unit="[in_i]" label="[in_i]"></mb-unit>
</mb-quantity>
<mb-context path="ncd/height_length/any_event:0/time"></mb-context>
<mb-context path="ncd/height_length/language"></mb-context>
<mb-context path="ncd/height_length/encoding"></mb-context>
<mb-context path="ncd/height_length/subject"></mb-context>
<mb-quantity default="kg" path="ncd/body_weight/any_event:0/weight" label="Weight">
<mb-unit unit="kg" label="kg"></mb-unit>
<mb-unit unit="[lb_av]" label="[lb_av]"></mb-unit>
<mb-unit unit="g" label="g"></mb-unit>
</mb-quantity>
<mb-context path="ncd/body_weight/any_event:0/time"></mb-context>
<mb-context path="ncd/body_weight/language"></mb-context>
<mb-context path="ncd/body_weight/encoding"></mb-context>
<mb-context path="ncd/body_weight/subject"></mb-context>
<mb-quantity default="cm" path="ncd/waist_circumference/any_event:0/waist_circumference" label="Waist circumference">
<mb-unit unit="cm" label="cm"></mb-unit>
<mb-unit unit="[in_i]" label="[in_i]"></mb-unit>
</mb-quantity>
<mb-context path="ncd/waist_circumference/any_event:0/time"></mb-context>
<mb-context path="ncd/waist_circumference/language"></mb-context>
<mb-context path="ncd/waist_circumference/encoding"></mb-context>
<mb-context path="ncd/waist_circumference/subject"></mb-context>
<mb-quantity default="cm" path="ncd/hip_circumference/hip_circumference" label="Hip circumference">
<mb-unit unit="cm" label="cm"></mb-unit>
<mb-unit unit="[in_i]" label="[in_i]"></mb-unit>
</mb-quantity>
<mb-context path="ncd/hip_circumference/time"></mb-context>
<mb-context path="ncd/hip_circumference/language"></mb-context>
<mb-context path="ncd/hip_circumference/encoding"></mb-context>
<mb-context path="ncd/hip_circumference/subject"></mb-context>
<mb-percent path="ncd/pulse_oximetry/any_event:0/spo" label="SpO₂"></mb-percent>
<mb-context path="ncd/pulse_oximetry/any_event:0/time"></mb-context>
<mb-context path="ncd/pulse_oximetry/language"></mb-context>
<mb-context path="ncd/pulse_oximetry/encoding"></mb-context>
<mb-context path="ncd/pulse_oximetry/subject"></mb-context>
<mb-input path="ncd/laboratory_test_result/any_event:0/test_name" label="Test name"></mb-input>
<mb-quantity default="mmol/dl" path="ncd/laboratory_test_result/any_event:0/blood_glucose/blood_glucose_level" label="Blood Glucose Level">
<mb-unit unit="mmol/dl" label="mmol/dl"></mb-unit>
</mb-quantity>
<mb-quantity default="g/dl" path="ncd/laboratory_test_result/any_event:0/haemoglobin/haemoglobin" label="Haemoglobin">
<mb-unit unit="g/dl" label="g/dl"></mb-unit>
</mb-quantity>
<mb-quantity default="mg/dl" path="ncd/laboratory_test_result/any_event:0/cholesterol/cholesterol" label="Cholesterol">
<mb-unit unit="mg/dl" label="mg/dl"></mb-unit>
</mb-quantity>
<mb-quantity default="mg/dl" path="ncd/laboratory_test_result/any_event:0/uric_acid/uric_acid" label="Uric Acid">
<mb-unit unit="mg/dl" label="mg/dl"></mb-unit>
</mb-quantity>
<mb-select path="ncd/laboratory_test_result/any_event:0/blood_group/analyte_name" label="Analyte name" terminology="LOINC">
<mb-option value="882-1" label="ABO and Rh group [Type] in Blood"></mb-option>
</mb-select>
<mb-buttons path="ncd/laboratory_test_result/any_event:0/blood_group/blood_group" label="Blood Group" terminology="SNOMED-CT">
<mb-option value="278147001" label="O +ve"></mb-option>
<mb-option value="278148006" label="O -ve"></mb-option>
<mb-option value="278149003" label="A +ve"></mb-option>
<mb-option value="278152006" label="A -ve"></mb-option>
<mb-option value="278150003" label="B +ve"></mb-option>
<mb-option value="278153001" label="B -ve"></mb-option>
<mb-option value="278151004" label="AB +ve"></mb-option>
<mb-option value="278154007" label="AB -ve"></mb-option>
</mb-buttons>
<mb-context path="ncd/laboratory_test_result/any_event:0/time"></mb-context>
<mb-context path="ncd/laboratory_test_result/language"></mb-context>
<mb-context path="ncd/laboratory_test_result/encoding"></mb-context>
<mb-context path="ncd/laboratory_test_result/subject"></mb-context>
<mb-select path=ncd/urinalysis/point_in_time:0/glucose label="Glucose">
<mb-option value="at0115" label="Negative" ordinal="1"></mb-option>
<mb-option value="at0116" label="Trace" ordinal="2"></mb-option>
<mb-option value="at0117" label="1+" ordinal="3"></mb-option>
<mb-option value="at0118" label="2+" ordinal="4"></mb-option>
<mb-option value="at0119" label="3+" ordinal="5"></mb-option>
<mb-option value="at0120" label="4+" ordinal="6"></mb-option></mb-select>
<mb-select path=ncd/urinalysis/point_in_time:0/protein label="Protein">
<mb-option value="at0096" label="Negative" ordinal="1"></mb-option>
<mb-option value="at0097" label="Trace" ordinal="2"></mb-option>
<mb-option value="at0098" label="1+" ordinal="3"></mb-option>
<mb-option value="at0099" label="2+" ordinal="4"></mb-option>
<mb-option value="at0100" label="3+" ordinal="5"></mb-option>
<mb-option value="at0101" label="4+" ordinal="6"></mb-option></mb-select>
<mb-context path="ncd/urinalysis/point_in_time:0/time"></mb-context>
<mb-context path="ncd/urinalysis/language"></mb-context>
<mb-context path="ncd/urinalysis/encoding"></mb-context>
<mb-context path="ncd/urinalysis/subject"></mb-context>
<mb-context path="ncd/category"></mb-context>
<mb-context path="ncd/language"></mb-context>
<mb-context path="ncd/territory"></mb-context>
<mb-context path="ncd/composer"></mb-context>

<div>
<mb-submit type="primary"><sl-button>Save</sl-button></mb-submit>
</div>
</mb-form>
<!-- <style>
</body>
<!-- <style>
:root {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
Expand Down Expand Up @@ -149,5 +271,4 @@
}
}
</style> -->
</body>
</html>
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
"dist/shoelace.js",
"dist/shoelace.d.ts",
"vscode-custom-data.json",
"dist/src"
"dist/src",
"dist/utils.js",
"dist/utils.d.ts"
],
"scripts": {
"start": "tsc && concurrently -k -r \"tsc --watch --preserveWatchOutput\" \"wds\"",
Expand Down
Loading

0 comments on commit 3c70930

Please sign in to comment.