Class: Gerint::EvolucaoPaciente
- Defined in:
- lib/gerint/servicos/evolucao_paciente.rb
Instance Attribute Summary collapse
-
#bcf ⇒ Object
Returns the value of attribute bcf.
-
#bolsaIntegra ⇒ Object
Returns the value of attribute bolsaIntegra.
-
#conteudo ⇒ Object
Returns the value of attribute conteudo.
-
#corLiquidoAminiotico ⇒ Object
Returns the value of attribute corLiquidoAminiotico.
-
#dataHoraRuptura ⇒ Object
Returns the value of attribute dataHoraRuptura.
-
#debitoUrinario ⇒ Object
Returns the value of attribute debitoUrinario.
-
#descricaoEcografia ⇒ Object
Returns the value of attribute descricaoEcografia.
-
#dinamica ⇒ Object
Returns the value of attribute dinamica.
-
#drogasVasoativas ⇒ Object
Returns the value of attribute drogasVasoativas.
-
#ecografia ⇒ Object
Returns the value of attribute ecografia.
-
#evolucaoDoCaso ⇒ Object
Returns the value of attribute evolucaoDoCaso.
-
#fileName ⇒ Object
Returns the value of attribute fileName.
-
#fiO2 ⇒ Object
Returns the value of attribute fiO2.
-
#fluxo ⇒ Object
Returns the value of attribute fluxo.
-
#frequenciaCardiaca ⇒ Object
Returns the value of attribute frequenciaCardiaca.
-
#frequenciaRespiratoria ⇒ Object
Returns the value of attribute frequenciaRespiratoria.
-
#germe1 ⇒ Object
Returns the value of attribute germe1.
-
#germe2 ⇒ Object
Returns the value of attribute germe2.
-
#germe3 ⇒ Object
Returns the value of attribute germe3.
-
#germeMultiresistente ⇒ Object
Returns the value of attribute germeMultiresistente.
-
#grumos ⇒ Object
Returns the value of attribute grumos.
-
#isolamentoNecessario ⇒ Object
Returns the value of attribute isolamentoNecessario.
-
#listaDrogasVasoativas ⇒ Object
Returns the value of attribute listaDrogasVasoativas.
-
#mimeType ⇒ Object
Returns the value of attribute mimeType.
-
#peep ⇒ Object
Returns the value of attribute peep.
-
#pressaoArterialMaxima ⇒ Object
Returns the value of attribute pressaoArterialMaxima.
-
#pressaoArterialMinima ⇒ Object
Returns the value of attribute pressaoArterialMinima.
-
#protocoloSolicitacao ⇒ Object
Returns the value of attribute protocoloSolicitacao.
-
#satO2 ⇒ Object
Returns the value of attribute satO2.
-
#saturacaoO2 ⇒ Object
Returns the value of attribute saturacaoO2.
-
#sensorio ⇒ Object
Returns the value of attribute sensorio.
-
#suporteO2 ⇒ Object
Returns the value of attribute suporteO2.
-
#temperatura ⇒ Object
Returns the value of attribute temperatura.
-
#toqueNaoRealizado ⇒ Object
Returns the value of attribute toqueNaoRealizado.
Instance Method Summary collapse
-
#all_json ⇒ Object
Gera hash com todas as variaveis de instancia.
- #as_json(options = {}) ⇒ Object
- #to_json(*options) ⇒ Object
Methods inherited from Padrao
Instance Attribute Details
#bcf ⇒ Object
Returns the value of attribute bcf.
9 10 11 |
# File 'lib/gerint/servicos/evolucao_paciente.rb', line 9 def bcf @bcf end |
#bolsaIntegra ⇒ Object
Returns the value of attribute bolsaIntegra.
9 10 11 |
# File 'lib/gerint/servicos/evolucao_paciente.rb', line 9 def bolsaIntegra @bolsaIntegra end |
#conteudo ⇒ Object
Returns the value of attribute conteudo.
10 11 12 |
# File 'lib/gerint/servicos/evolucao_paciente.rb', line 10 def conteudo @conteudo end |
#corLiquidoAminiotico ⇒ Object
Returns the value of attribute corLiquidoAminiotico.
9 10 11 |
# File 'lib/gerint/servicos/evolucao_paciente.rb', line 9 def corLiquidoAminiotico @corLiquidoAminiotico end |
#dataHoraRuptura ⇒ Object
Returns the value of attribute dataHoraRuptura.
9 10 11 |
# File 'lib/gerint/servicos/evolucao_paciente.rb', line 9 def dataHoraRuptura @dataHoraRuptura end |
#debitoUrinario ⇒ Object
Returns the value of attribute debitoUrinario.
12 13 14 |
# File 'lib/gerint/servicos/evolucao_paciente.rb', line 12 def debitoUrinario @debitoUrinario end |
#descricaoEcografia ⇒ Object
Returns the value of attribute descricaoEcografia.
10 11 12 |
# File 'lib/gerint/servicos/evolucao_paciente.rb', line 10 def descricaoEcografia @descricaoEcografia end |
#dinamica ⇒ Object
Returns the value of attribute dinamica.
8 9 10 |
# File 'lib/gerint/servicos/evolucao_paciente.rb', line 8 def dinamica @dinamica end |
#drogasVasoativas ⇒ Object
Returns the value of attribute drogasVasoativas.
8 9 10 |
# File 'lib/gerint/servicos/evolucao_paciente.rb', line 8 def drogasVasoativas @drogasVasoativas end |
#ecografia ⇒ Object
Returns the value of attribute ecografia.
10 11 12 |
# File 'lib/gerint/servicos/evolucao_paciente.rb', line 10 def ecografia @ecografia end |
#evolucaoDoCaso ⇒ Object
Returns the value of attribute evolucaoDoCaso.
8 9 10 |
# File 'lib/gerint/servicos/evolucao_paciente.rb', line 8 def evolucaoDoCaso @evolucaoDoCaso end |
#fileName ⇒ Object
Returns the value of attribute fileName.
10 11 12 |
# File 'lib/gerint/servicos/evolucao_paciente.rb', line 10 def fileName @fileName end |
#fiO2 ⇒ Object
Returns the value of attribute fiO2.
13 14 15 |
# File 'lib/gerint/servicos/evolucao_paciente.rb', line 13 def fiO2 @fiO2 end |
#fluxo ⇒ Object
Returns the value of attribute fluxo.
12 13 14 |
# File 'lib/gerint/servicos/evolucao_paciente.rb', line 12 def fluxo @fluxo end |
#frequenciaCardiaca ⇒ Object
Returns the value of attribute frequenciaCardiaca.
11 12 13 |
# File 'lib/gerint/servicos/evolucao_paciente.rb', line 11 def frequenciaCardiaca @frequenciaCardiaca end |
#frequenciaRespiratoria ⇒ Object
Returns the value of attribute frequenciaRespiratoria.
11 12 13 |
# File 'lib/gerint/servicos/evolucao_paciente.rb', line 11 def frequenciaRespiratoria @frequenciaRespiratoria end |
#germe1 ⇒ Object
Returns the value of attribute germe1.
13 14 15 |
# File 'lib/gerint/servicos/evolucao_paciente.rb', line 13 def germe1 @germe1 end |
#germe2 ⇒ Object
Returns the value of attribute germe2.
13 14 15 |
# File 'lib/gerint/servicos/evolucao_paciente.rb', line 13 def germe2 @germe2 end |
#germe3 ⇒ Object
Returns the value of attribute germe3.
13 14 15 |
# File 'lib/gerint/servicos/evolucao_paciente.rb', line 13 def germe3 @germe3 end |
#germeMultiresistente ⇒ Object
Returns the value of attribute germeMultiresistente.
13 14 15 |
# File 'lib/gerint/servicos/evolucao_paciente.rb', line 13 def germeMultiresistente @germeMultiresistente end |
#grumos ⇒ Object
Returns the value of attribute grumos.
9 10 11 |
# File 'lib/gerint/servicos/evolucao_paciente.rb', line 9 def grumos @grumos end |
#isolamentoNecessario ⇒ Object
Returns the value of attribute isolamentoNecessario.
13 14 15 |
# File 'lib/gerint/servicos/evolucao_paciente.rb', line 13 def isolamentoNecessario @isolamentoNecessario end |
#listaDrogasVasoativas ⇒ Object
Returns the value of attribute listaDrogasVasoativas.
8 9 10 |
# File 'lib/gerint/servicos/evolucao_paciente.rb', line 8 def listaDrogasVasoativas @listaDrogasVasoativas end |
#mimeType ⇒ Object
Returns the value of attribute mimeType.
10 11 12 |
# File 'lib/gerint/servicos/evolucao_paciente.rb', line 10 def mimeType @mimeType end |
#peep ⇒ Object
Returns the value of attribute peep.
13 14 15 |
# File 'lib/gerint/servicos/evolucao_paciente.rb', line 13 def peep @peep end |
#pressaoArterialMaxima ⇒ Object
Returns the value of attribute pressaoArterialMaxima.
11 12 13 |
# File 'lib/gerint/servicos/evolucao_paciente.rb', line 11 def pressaoArterialMaxima @pressaoArterialMaxima end |
#pressaoArterialMinima ⇒ Object
Returns the value of attribute pressaoArterialMinima.
11 12 13 |
# File 'lib/gerint/servicos/evolucao_paciente.rb', line 11 def pressaoArterialMinima @pressaoArterialMinima end |
#protocoloSolicitacao ⇒ Object
Returns the value of attribute protocoloSolicitacao.
8 9 10 |
# File 'lib/gerint/servicos/evolucao_paciente.rb', line 8 def protocoloSolicitacao @protocoloSolicitacao end |
#satO2 ⇒ Object
Returns the value of attribute satO2.
13 14 15 |
# File 'lib/gerint/servicos/evolucao_paciente.rb', line 13 def satO2 @satO2 end |
#saturacaoO2 ⇒ Object
Returns the value of attribute saturacaoO2.
12 13 14 |
# File 'lib/gerint/servicos/evolucao_paciente.rb', line 12 def saturacaoO2 @saturacaoO2 end |
#sensorio ⇒ Object
Returns the value of attribute sensorio.
12 13 14 |
# File 'lib/gerint/servicos/evolucao_paciente.rb', line 12 def sensorio @sensorio end |
#suporteO2 ⇒ Object
Returns the value of attribute suporteO2.
12 13 14 |
# File 'lib/gerint/servicos/evolucao_paciente.rb', line 12 def suporteO2 @suporteO2 end |
#temperatura ⇒ Object
Returns the value of attribute temperatura.
12 13 14 |
# File 'lib/gerint/servicos/evolucao_paciente.rb', line 12 def temperatura @temperatura end |
#toqueNaoRealizado ⇒ Object
Returns the value of attribute toqueNaoRealizado.
9 10 11 |
# File 'lib/gerint/servicos/evolucao_paciente.rb', line 9 def toqueNaoRealizado @toqueNaoRealizado end |
Instance Method Details
#all_json ⇒ Object
Gera hash com todas as variaveis de instancia
56 57 58 59 60 61 62 63 64 |
# File 'lib/gerint/servicos/evolucao_paciente.rb', line 56 def all_json # Gera hash com todas as variaveis de instancia vinstancia = self.instance_variables h = {} vinstancia.each do |v| h.store(v[1..50], "#{v}") # BUG: v contem o nome da variavel e não o valor int end h h.to_json end |
#as_json(options = {}) ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/gerint/servicos/evolucao_paciente.rb', line 17 def as_json(={}) h = { protocoloSolicitacao: @protocoloSolicitacao, evolucaoDoCaso: @evolucaoDoCaso } h.store(:drogasVasoativas, @drogasVasoativas) unless @drogasVasoativas.nil? h.store(:listaDrogasVasoativas, @listaDrogasVasoativas) unless @listaDrogasVasoativas.nil? h.store(:dinamica, @dinamica) unless @dinamica.nil? h.store(:toqueNaoRealizado, @toqueNaoRealizado) unless @toqueNaoRealizado.nil? h.store(:bcf, @bcf) unless @bcf.nil? h.store(:bolsaIntegra, @bolsaIntegra) unless @bolsaIntegra.nil? h.store(:dataHoraRuptura, @dataHoraRuptura) unless @dataHoraRuptura.nil? h.store(:corLiquidoAminiotico, @corLiquidoAminiotico) unless @corLiquidoAminiotico.nil? h.store(:grumos, @grumos) unless @grumos.nil? h.store(:ecografia, @ecografia) unless @ecografia.nil? h.store(:descricaoEcografia, @descricaoEcografia) unless @descricaoEcografia.nil? h.store(:fileName, @fileName) unless @fileName.nil? h.store(:mimeType, @mimeType) unless @mimeType.nil? h.store(:conteudo, @conteudo) unless @conteudo.nil? h.store(:frequenciaCardiaca, @frequenciaCardiaca) unless @frequenciaCardiaca.nil? h.store(:frequenciaRespiratoria, @frequenciaRespiratoria) unless @frequenciaRespiratoria.nil? h.store(:pressaoArterialMaxima, @pressaoArterialMaxima) unless @pressaoArterialMaxima.nil? h.store(:pressaoArterialMinima, @pressaoArterialMinima) unless @pressaoArterialMinima.nil? h.store(:temperatura, @temperatura) unless @temperatura.nil? h.store(:saturacaoO2, @saturacaoO2) unless @saturacaoO2.nil? h.store(:sensorio, @sensorio) unless @sensorio.nil? h.store(:debitoUrinario, @debitoUrinario) unless @debitoUrinario.nil? h.store(:suporteO2, @suporteO2) unless @suporteO2.nil? h.store(:fluxo, @fluxo) unless @fluxo.nil? h.store(:fiO2, @fiO2) unless @fiO2.nil? h.store(:satO2, @satO2) unless @satO2.nil? h.store(:peep, @peep) unless @peep.nil? h.store(:isolamentoNecessario, @isolamentoNecessario) unless @isolamentoNecessario.nil? h.store(:germe1, @germe1) unless @germe1.nil? h.store(:germe2, @germe2) unless @germe2.nil? h.store(:germe3, @germe3) unless @germe3.nil? h.store(:germeMultiResistente, @germeMultiresistente) unless @germeMultiresistente.nil? h end |
#to_json(*options) ⇒ Object
66 67 68 |
# File 'lib/gerint/servicos/evolucao_paciente.rb', line 66 def to_json(*) as_json(*).to_json(*) end |