Skip to content

Commit

Permalink
feat (heart): new cases
Browse files Browse the repository at this point in the history
  • Loading branch information
santanche committed Aug 24, 2023
1 parent cc6d285 commit e27cbea
Show file tree
Hide file tree
Showing 35 changed files with 1,158 additions and 0 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
105 changes: 105 additions & 0 deletions health/heart/eletrodo/posicao-eletrodo/blocks.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
Blockly.Blocks['imagem_eletrodo'] = {
init: function () {
this.jsonInit({
message0: '%1',
args0: [
{
type: 'field_dropdown',
name: 'entity',
options: [
[{src: 'eletrodo1.png', width: 200, height: 200, alt: 'eletrodo 1'}, 'eletrodo1'],
[{src: 'eletrodo2.png', width: 200, height: 200, alt: 'eletrodo 2'}, 'eletrodo2'],
[{src: 'eletrodo3.png', width: 200, height: 200, alt: 'eletrodo 3'}, 'eletrodo3'],
[{src: 'eletrodo4.png', width: 200, height: 200, alt: 'eletrodo 4'}, 'eletrodo4'],
[{src: 'eletrodo5.png', width: 200, height: 200, alt: 'eletrodo 5'}, 'eletrodo5']
]
}
],
colour: 20,
tooltip: 'Eletro',
output: 'eletrodo'
})
}
}

Blockly.Blocks['sequence'] = {
init: function () {
this.jsonInit({
"type": "torax",
"message0": "%1",
"args0": [
{
"type": "field_image",
"src": "1toraxM.jpg",
"width": 400,
"height": 400,
"alt": "*"
}
],
message1: 'A %1 B %2 C %3 D %4 E %5 F %6 G %7 H %8 I %9 J %10 K %11 L %12',
args1: [
{
type: 'input_value',
name: 'VAR',
check: 'eletrodo',
},
{
type: 'input_value',
name: 'VAR',
check: 'eletrodo',
},
{
type: 'input_value',
name: 'VAR',
check: 'eletrodo',
},
{
type: 'input_value',
name: 'VAR',
check: 'eletrodo',
},
{
type: 'input_value',
name: 'VAR',
check: 'eletrodo',
},
{
type: 'input_value',
name: 'VAR',
check: 'eletrodo',
},
{
type: 'input_value',
name: 'VAR',
check: 'eletrodo',
},
{
type: 'input_value',
name: 'VAR',
check: 'eletrodo',
},
{
type: 'input_value',
name: 'VAR',
check: 'eletrodo',
},
{
type: 'input_value',
name: 'VAR',
check: 'eletrodo',
},
{
type: 'input_value',
name: 'VAR',
check: 'eletrodo',
},
{
type: 'input_value',
name: 'VAR',
check: 'eletrodo',
}
],
colour: 500
})
}
}
113 changes: 113 additions & 0 deletions health/heart/eletrodo/posicao-eletrodo/dados.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
{
type: "eletrico";
user: "";
image: 1;
estrutura: "Sino atrial";
eletrico: "Estímulo elétrico DISPARANDO ..."
}

{
type: "mecanico";
user: "";
image: 1;
estrutura: "Átrio";
mecanico: "Contração atrial";
fisio: "Envio de sangue sob pressão do átrio para ventrículos"
}

{
type: "onda";
user: "";
image: 1
}

{
type: "conexao";
user: "";
onda: 1;
eletro: 1;
mec: 1;
anterior: null;
proxima: null;
}

{
type: "exercicio"
id_usuario: "";
time: "";
vez: 1;
conexoes: 5;
conexao1:{
onda: 1;
eletro: 1;
mec: 1
}
conexao2:{
onda: 2;
eletro: 2;
mec: 2
}
conexao3:{
onda: 3;
eletro: 3;
mec: 3
}
conexao4:{
onda: 4;
eletro: 4;
mec: 4
}
conexao5:{
onda: 5;
eletro: 5;
mec: 5
}
}

{
type: "resultado";
id_usuario: "";
time: "";
vez: 1;
acertou: True;
tutor: False;
timeTutor: "";
}

{
type: "video";
id_usuario: "";
time: "";
}
{
type: "preTeste";
id_usuario: "";
time: "";
nota: 10;
q1: "E"
q2: "B"
q3: "A"
q4: "C"
q5: "D"
q6: "E"
q7: "A"
q8: "B"
q9: "C"
q10: "D"
}
{
type: "posTeste";
id_usuario: "";
time: "";
nota: 10;
q1: "E"
q2: "B"
q3: "A"
q4: "C"
q5: "D"
q6: "E"
q7: "A"
q8: "B"
q9: "C"
q10: "D"
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
33 changes: 33 additions & 0 deletions health/heart/eletrodo/posicao-eletrodo/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<script src="https://unpkg.com/blockly/blockly.min.js"></script>
<script src="blocks.js"></script>
<title>Colocando eletrodos</title>
</head>
<body>
<div id="blocklyDiv" style="height: 700px; width: 100%;"></div>
<xml id="toolbox" style="display: none">

<category name="Componentes" colour="20">
<block type="imagem_eletrodo"></block>
<block type="sequence"></block>
</category>
</xml>
<script>
var workspace = Blockly.inject('blocklyDiv',
{toolbox: document.getElementById('toolbox'),
zoom:
{controls: true,
wheel: true,
startScale: 1.0,
maxScale: 3,
minScale: 0.3,
scaleSpeed: 1.2,
pinch: true},
trashcan: true});
</script>

</body>
</html>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added health/heart/eletrodo/posicao-eletrodo/toraxM.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit e27cbea

Please sign in to comment.