Closed filiperochalopes closed 1 year ago
Nome da medicação está aparecendo duas vezes.
Note que ainda está errada a visualização, notei ontem enquanto testava as outras issues. A primeira parte de "Últimas Atualizações devem ter os dados: Sinais Vitais, Evolução e Pendências das últimas 48h. Após isso, todos os outros dados devem estar organizados, do mais recente para o mais antigo pra baixo após "Demais evoluções"
Request
query internment($internment: ID!) {
internment(id: $internment) {
patient {
age
name
id
__typename
}
hpi
evolutions {
text
professional {
name
__typename
}
createdAt
__typename
}
prescriptions {
id
restingActivity {
name
__typename
}
diet {
name
__typename
}
drugPrescriptions {
id
drug {
kind
name
__typename
}
dosage
route
initialDate
endingDate
__typename
}
nursingActivities {
name
__typename
}
createdAt
__typename
}
pendings {
text
createdAt
__typename
}
fluidBalance {
id
volumeMl
description {
value
__typename
}
createdAt
__typename
}
measures {
spO2
pain
systolicBloodPressure
diastolicBloodPressure
cardiacFrequency
respiratoryFrequency
celciusAxillaryTemperature
glucose
fetalCardiacFrequency
createdAt
__typename
}
__typename
}
}
Response
{
"internment": {
"__typename": "Internment",
"evolutions": [
{
"__typename": "Evolution",
"createdAt": "2023-04-02T14:21:22.460089+00:00",
"professional": {
"__typename": "User",
"name": "Luke Skywalker"
},
"text": "Cras euismod pellentesque pretium. Duis ex libero, gravida varius dignissim ut, fringilla sit amet mi. Suspendisse sit amet interdum libero. Cras eleifend varius volutpat. Suspendisse mi eros, eleifend ut dignissim vel, placerat sed lorem. Mauris ut est sodales, egestas elit a, gravida ligula. Nullam egestas venenatis dui, eget egestas neque tempor et. Ut accumsan malesuada nisi, quis elementum enim elementum pretium. Essa evolução também servirá para o relatório de alta."
},
{
"__typename": "Evolution",
"createdAt": "2023-04-16T23:33:31.537571+00:00",
"professional": {
"__typename": "User",
"name": "Luke Skywalker"
},
"text": "Aqui vai evolução do dia"
}
],
"fluidBalance": [
{
"__typename": "FluidBalance",
"createdAt": "2023-04-02T14:21:23.576449+00:00",
"description": {
"__typename": "ValueObject",
"value": "Diurese"
},
"id": "1",
"volumeMl": -250
},
{
"__typename": "FluidBalance",
"createdAt": "2023-04-02T14:21:23.600273+00:00",
"description": {
"__typename": "ValueObject",
"value": "Medicação"
},
"id": "2",
"volumeMl": 250
},
{
"__typename": "FluidBalance",
"createdAt": "2023-04-05T02:44:36.600824+00:00",
"description": {
"__typename": "ValueObject",
"value": ""
},
"id": "5",
"volumeMl": 0
},
{
"__typename": "FluidBalance",
"createdAt": "2023-04-05T02:45:06.149750+00:00",
"description": {
"__typename": "ValueObject",
"value": ""
},
"id": "6",
"volumeMl": 0
},
{
"__typename": "FluidBalance",
"createdAt": "2023-04-05T02:58:58.571643+00:00",
"description": {
"__typename": "ValueObject",
"value": ""
},
"id": "7",
"volumeMl": 0
},
{
"__typename": "FluidBalance",
"createdAt": "2023-04-05T02:59:20.832106+00:00",
"description": {
"__typename": "ValueObject",
"value": ""
},
"id": "8",
"volumeMl": 0
},
{
"__typename": "FluidBalance",
"createdAt": "2023-04-05T03:00:54.084833+00:00",
"description": {
"__typename": "ValueObject",
"value": ""
},
"id": "9",
"volumeMl": 0
},
{
"__typename": "FluidBalance",
"createdAt": "2023-04-05T09:42:11.483749+00:00",
"description": {
"__typename": "ValueObject",
"value": "Água"
},
"id": "10",
"volumeMl": 550
}
],
"hpi": "lorem ipsum",
"measures": [
{
"__typename": "Measure",
"cardiacFrequency": 78,
"celciusAxillaryTemperature": 36.5,
"createdAt": "2023-04-02T14:21:23.182999+00:00",
"diastolicBloodPressure": 78,
"fetalCardiacFrequency": 140,
"glucose": 356,
"pain": 0,
"respiratoryFrequency": 20,
"spO2": 98,
"systolicBloodPressure": 156
},
{
"__typename": "Measure",
"cardiacFrequency": 89,
"celciusAxillaryTemperature": null,
"createdAt": "2023-04-05T02:44:36.544165+00:00",
"diastolicBloodPressure": 70,
"fetalCardiacFrequency": null,
"glucose": null,
"pain": null,
"respiratoryFrequency": 26,
"spO2": null,
"systolicBloodPressure": 130
},
{
"__typename": "Measure",
"cardiacFrequency": 90,
"celciusAxillaryTemperature": null,
"createdAt": "2023-04-05T02:45:06.124509+00:00",
"diastolicBloodPressure": null,
"fetalCardiacFrequency": null,
"glucose": 120,
"pain": null,
"respiratoryFrequency": null,
"spO2": null,
"systolicBloodPressure": null
},
{
"__typename": "Measure",
"cardiacFrequency": null,
"celciusAxillaryTemperature": 120,
"createdAt": "2023-04-05T02:58:58.523064+00:00",
"diastolicBloodPressure": null,
"fetalCardiacFrequency": null,
"glucose": null,
"pain": null,
"respiratoryFrequency": null,
"spO2": null,
"systolicBloodPressure": null
},
{
"__typename": "Measure",
"cardiacFrequency": null,
"celciusAxillaryTemperature": null,
"createdAt": "2023-04-05T02:59:20.793281+00:00",
"diastolicBloodPressure": null,
"fetalCardiacFrequency": null,
"glucose": null,
"pain": 11,
"respiratoryFrequency": 15,
"spO2": null,
"systolicBloodPressure": null
},
{
"__typename": "Measure",
"cardiacFrequency": null,
"celciusAxillaryTemperature": null,
"createdAt": "2023-04-05T03:00:54.051620+00:00",
"diastolicBloodPressure": 65,
"fetalCardiacFrequency": null,
"glucose": null,
"pain": null,
"respiratoryFrequency": 12,
"spO2": null,
"systolicBloodPressure": 125
},
{
"__typename": "Measure",
"cardiacFrequency": null,
"celciusAxillaryTemperature": null,
"createdAt": "2023-04-05T09:42:11.406990+00:00",
"diastolicBloodPressure": null,
"fetalCardiacFrequency": null,
"glucose": null,
"pain": null,
"respiratoryFrequency": null,
"spO2": null,
"systolicBloodPressure": null
},
{
"__typename": "Measure",
"cardiacFrequency": 120,
"celciusAxillaryTemperature": null,
"createdAt": "2023-04-16T23:33:49.227717+00:00",
"diastolicBloodPressure": null,
"fetalCardiacFrequency": null,
"glucose": null,
"pain": null,
"respiratoryFrequency": 12,
"spO2": null,
"systolicBloodPressure": null
}
],
"patient": {
"__typename": "Patient",
"age": "27 anos, 16 meses, 17 dias",
"id": "1",
"name": "Dart Vader"
},
"pendings": [
{
"__typename": "Pending",
"createdAt": "2023-04-02T14:21:23.985530+00:00",
"text": "Pendencias de exemplo. Sed porta ornare neque vitae interdum. Cras viverra purus quis purus ultricies interdum. Fusce venenatis bibendum leo. Vestibulum lobortis eleifend facilisis. Duis congue neque eget tempus hendrerit. Phasellus hendrerit purus neque, ut viverra lorem venenatis eget. Donec a elit a sapien tempor scelerisque id ut leo. Etiam ut neque sit amet turpis tempus sollicitudin id et enim."
},
{
"__typename": "Pending",
"createdAt": "2023-04-16T23:34:25.178594+00:00",
"text": "Pendencias de exemplo. Sed porta ornare neque vitae interdum. Cras viverra purus quis purus ultricies interdum. Fusce venenatis bibendum leo. Vestibulum lobortis eleifend facilisis. Duis congue neque eget tempus hendrerit. Phasellus hendrerit purus neque, ut viverra lorem venenatis eget. Donec a elit a sapien tempor scelerisque id ut leo. Etiam ut neque sit amet turpis tempus sollicitudin id et enim. teste"
}
],
"prescriptions": [
{
"__typename": "Prescription",
"createdAt": "2023-04-02T14:21:22.814403+00:00",
"diet": {
"__typename": "NamedObject",
"name": null
},
"drugPrescriptions": [
{
"__typename": "DrugPrescription",
"dosage": "Dose vai aqui",
"drug": {
"__typename": "Drug",
"kind": "oth",
"name": "Dipirona Flash"
},
"endingDate": null,
"id": "1",
"initialDate": null,
"route": "Oral"
},
{
"__typename": "DrugPrescription",
"dosage": "Dose única",
"drug": {
"__typename": "Drug",
"kind": "atb",
"name": "Antibiótico de Teste"
},
"endingDate": "2022-12-08T11:30:00",
"id": "2",
"initialDate": "2022-12-01T11:30:00",
"route": "Intravenoso"
}
],
"id": "1",
"nursingActivities": [],
"restingActivity": {
"__typename": "NamedObject",
"name": null
}
},
{
"__typename": "Prescription",
"createdAt": "2023-04-02T18:49:25.931724+00:00",
"diet": {
"__typename": "NamedObject",
"name": ""
},
"drugPrescriptions": [
{
"__typename": "DrugPrescription",
"dosage": "1g (1 ampola) no momento",
"drug": {
"__typename": "Drug",
"kind": "oth",
"name": "Dipirona 500mg/mL 2ml"
},
"endingDate": null,
"id": "3",
"initialDate": null,
"route": "Intramuscular"
},
{
"__typename": "DrugPrescription",
"dosage": "Dose única",
"drug": {
"__typename": "Drug",
"kind": "atb",
"name": "Antibiótico de Teste"
},
"endingDate": "2022-12-08T11:30:00",
"id": "4",
"initialDate": "2022-12-01T11:30:00",
"route": "Intravenoso"
}
],
"id": "2",
"nursingActivities": [],
"restingActivity": {
"__typename": "NamedObject",
"name": ""
}
},
{
"__typename": "Prescription",
"createdAt": "2023-04-16T23:34:06.467259+00:00",
"diet": {
"__typename": "NamedObject",
"name": ""
},
"drugPrescriptions": [
{
"__typename": "DrugPrescription",
"dosage": "1g (1 ampola) no momento",
"drug": {
"__typename": "Drug",
"kind": "oth",
"name": "Dipirona 500mg/mL 2ml"
},
"endingDate": null,
"id": "7",
"initialDate": null,
"route": "Intramuscular"
},
{
"__typename": "DrugPrescription",
"dosage": "Dose única",
"drug": {
"__typename": "Drug",
"kind": "atb",
"name": "Antibiótico de Teste"
},
"endingDate": "2022-12-08T11:30:00",
"id": "8",
"initialDate": "2022-12-01T11:30:00",
"route": "Intravenoso"
}
],
"id": "4",
"nursingActivities": [],
"restingActivity": {
"__typename": "NamedObject",
"name": ""
}
}
]
}
}
Aparentemente as variáveis estão sem tratamento de nulo. Isso foi ao tentar visualizar os prontuários de pacientes já cadastrados.
Request
query internment($internment: ID!) {
internment(id: $internment) {
patient {
age
name
id
__typename
}
hpi
evolutions {
text
professional {
name
__typename
}
createdAt
__typename
}
prescriptions {
id
restingActivity {
name
__typename
}
diet {
name
__typename
}
drugPrescriptions {
id
drug {
kind
name
__typename
}
dosage
route
initialDate
endingDate
__typename
}
nursingActivities {
name
__typename
}
createdAt
__typename
}
pendings {
text
createdAt
__typename
}
fluidBalance {
id
volumeMl
description {
value
__typename
}
createdAt
__typename
}
measures {
spO2
pain
systolicBloodPressure
diastolicBloodPressure
cardiacFrequency
respiratoryFrequency
celciusAxillaryTemperature
glucose
fetalCardiacFrequency
createdAt
__typename
}
__typename
}
}
Response
{
"__typename": "Internment",
"evolutions": [
{
"__typename": "Evolution",
"createdAt": "2023-04-02T17:14:13.979921+00:00",
"professional": {
"__typename": "User",
"name": "Luke Skywalker"
},
"text": "Cadastro de nova evolução"
},
{
"__typename": "Evolution",
"createdAt": "2023-04-02T17:38:45.018527+00:00",
"professional": {
"__typename": "User",
"name": "Luke Skywalker"
},
"text": "Cadastro de nova evolução de teste"
}
],
"fluidBalance": [
{
"__typename": "FluidBalance",
"createdAt": "2023-04-02T17:44:32.119137+00:00",
"description": {
"__typename": "ValueObject",
"value": ""
},
"id": "3",
"volumeMl": 0
},
{
"__typename": "FluidBalance",
"createdAt": "2023-04-02T17:45:43.503871+00:00",
"description": {
"__typename": "ValueObject",
"value": ""
},
"id": "4",
"volumeMl": 0
}
],
"hpi": "Aqui vai a história clínica do paciente",
"measures": [
{
"__typename": "Measure",
"cardiacFrequency": 45,
"celciusAxillaryTemperature": 0,
"createdAt": "2023-04-02T17:44:32.079698+00:00",
"diastolicBloodPressure": 0,
"fetalCardiacFrequency": 0,
"glucose": 0,
"pain": null,
"respiratoryFrequency": 0,
"spO2": null,
"systolicBloodPressure": 0
},
{
"__typename": "Measure",
"cardiacFrequency": 0,
"celciusAxillaryTemperature": 35.5,
"createdAt": "2023-04-02T17:45:43.474803+00:00",
"diastolicBloodPressure": 56,
"fetalCardiacFrequency": 0,
"glucose": 145,
"pain": null,
"respiratoryFrequency": 12,
"spO2": 98,
"systolicBloodPressure": 120
}
],
"patient": {
"__typename": "Patient",
"age": "55 anos, 16 meses, 46 dias",
"id": "2",
"name": "André Marcos Santos Lopes"
},
"pendings": [],
"prescriptions": []
}
Erros persistem, acabei de adicionar vários sinais vitais e só aparece um de frequência cardíaca.