📃Prescrição

Documentação de endpoints relacionados à prescrição

Capturar dados de uma prescrição

tags: recuperar prescrição, recuperar dados, dados da prescrição

Exemplo de resposta da requisição
Response Payload
{
  "data": {
    "type": "prescricoes",
    "attributes": {
      "prescriptionUuid": "7ccc019a-f819-49fc-b11e-3d28b7e39c5c",
      "medicos_id": 26979,
      "prescricao_editada_id": null,
      "lme": false,
      "opcoes_receituario_id": 1,
      "nome_medico": "Riva Junior",
      "endereco_medico": "",
      "cidade_medico": "",
      "telefone_medico": "(99) 99999-9999",
      "checksum": null,
      "workplace": [],
      "created_at": "21/01/2022 11:15:16",
      "screening": "{\"total\":\"0\",\"status\":\"success\",\"problems\":\"0\"}",
      "source": "",
      "signed": 0,
      "renew": 0,
      "data": "21/01/2022",
      "horario": "11:15:16",
      "additionalData": [],
      "prescriptionDate": "21/01/2022",
      "print_config": "{\"simple\":{\"all\":{\"print\":true,\"showDate\":true,\"copies\":{\"21\\/01\\/2022\":1},\"isSplitItems\":false}}}",
      "prescriptionDateOriginal": "2022-01-21 11:15:16",
      "paciente": {
        "id": 94143,
        "external_id": null,
        "category_condition_id": null,
        "nome": "riva",
        "nome_completo": null,
        "nome_social": null,
        "peso": null,
        "altura": null,
        "rg": null,
        "cpf": "00000000000",
        "data_nascimento": null,
        "nome_mae": null,
        "dificuldade_locomocao": false,
        "nome_responsavel": null,
        "email": null,
        "telefone": null,
        "cidade": null,
        "endereco": null,
        "accept_terms": 0,
        "total": 1,
        "type": "pacientes",
        "_relationships": {
          "allergy": []
        },
        "ultima": "21/01/2022 11:15:16",
        "allergy": []
      },
      "medicamentos": [
        {
          "id": "a1046503030027106379",
          "nome": "Dipirona, Comprimido (10un)",
          "descricao": null,
          "posologia": "<p>Tomar 1 comprimido até de 6 em 6 horas, se necessário.</p>",
          "quantidade": 1,
          "unit": "embalagem",
          "formas_fisicas_unidades_id": null,
          "composicao": "",
          "fabricante": "Neo Química",
          "titularidade": "Genérico",
          "controle_especial": false,
          "alto_custo": false,
          "quantidade_mes_1": null,
          "quantidade_mes_2": null,
          "quantidade_mes_3": null,
          "quantidade_mes_4": null,
          "quantidade_mes_5": null,
          "quantidade_mes_6": null,
          "anamnese": "",
          "tratamento_previo": false,
          "descricao_tratamento": "",
          "data_solicitacao": null,
          "cid_id": 0,
          "receituario": "Simples",
          "exames_sus_codigo": "",
          "exames_tuss_codigo": "",
          "tipo_exame_selecionado": "",
          "catmat_codigo_br": "",
          "catmat_descricao": "",
          "cid_descricao": "",
          "cid_numero": "",
          "preco": 13,
          "real_id": 19862,
          "tarja": "Livre",
          "tipo": "alopático",
          "exames": [],
          "fabricante_id": "f156",
          "sanitized_posology": "Tomar 1 comprimido até de 6 em 6 horas, se necessário.",
          "form_units": [
            {
              "id": 27,
              "singular": "Comprimido",
              "plural": "Comprimidos",
              "type": "formas-fisicas-unidades"
            }
          ],
          "psp": {
            "active": false,
            "tagline": null,
            "link": null
          },
          "via": null,
          "receituario_id": 12
        }
      ],
      "clinica": null,
      "medicos": {
        "id": "m26979",
        "especialidades_id": 5,
        "cidades_id": 2395,
        "nome_completo": "Riva Junior",
        "cns": null,
        "crm": "0000",
        "uf": "SP",
        "estudante": 0,
        "telefone": "(99) 99999-9999",
        "type": "medicos"
      },
      "documents": [
        {
          "id": 68,
          "uuid": "114383e7-c833-40e5-9a3d-4cc9509be1db",
          "type": "full",
          "status": "saved",
          "prescription_id": 7419,
          "prescription_uuid": "7ccc019a-f819-49fc-b11e-3d28b7e39c5c",
          "prescription_origin": null,
          "prescription_item_id": null,
          "signed": 0,
          "signed_by": null,
          "file_name": "7ccc019a-f819-49fc-b11e-3d28b7e39c5c_1642774535_FULL.pdf",
          "file_size": null,
          "file_hash": "aa339c2446f79d217c2d3d57e89e910bb7dae4d591c259f8a09bb9e0ef74d07eb0c8374dd2d273c705b03ef58efbea6b0e79750f70bedaf38efe72a111d3c53e",
          "keywords": {
            "prescriptionUuid": "7ccc019a-f819-49fc-b11e-3d28b7e39c5c",
            "uuid": "114383e7-c833-40e5-9a3d-4cc9509be1db",
            "date": "21/01/2022 11:15:16"
          },
          "created_at": "2022-01-21 11:15:29",
          "updated_at": "2022-01-21 11:15:44",
          "deleted_at": null
        },
        {
          "id": 69,
          "uuid": "5cccf58d-3bf0-4432-9799-123b0b1755e6",
          "type": "individual",
          "status": "saved",
          "prescription_id": 7419,
          "prescription_uuid": "7ccc019a-f819-49fc-b11e-3d28b7e39c5c",
          "prescription_origin": null,
          "prescription_item_id": 19862,
          "signed": 0,
          "signed_by": null,
          "file_name": "7ccc019a-f819-49fc-b11e-3d28b7e39c5c_1642774535_19862.pdf",
          "file_size": null,
          "file_hash": "028e1196d3d5a23ae7ad17037251d47ce42e9c48f734881579f0e9d6d0e2a28a98542556da54e9940727fb711520e995744c1438b6d04010aafb1d200ae7a0e8",
          "keywords": {
            "prescriptionUuid": "7ccc019a-f819-49fc-b11e-3d28b7e39c5c",
            "uuid": "5cccf58d-3bf0-4432-9799-123b0b1755e6",
            "date": "21/01/2022 11:15:16"
          },
          "created_at": "2022-01-21 11:15:29",
          "updated_at": "2022-01-21 11:15:45",
          "deleted_at": null
        },
        {
          "id": 70,
          "uuid": "65da987b-b194-42ee-b4c3-1f9d11cc6d02",
          "type": "signature",
          "status": "saved",
          "prescription_id": 7419,
          "prescription_uuid": "7ccc019a-f819-49fc-b11e-3d28b7e39c5c",
          "prescription_origin": null,
          "prescription_item_id": null,
          "signed": 0,
          "signed_by": null,
          "file_name": "7ccc019a-f819-49fc-b11e-3d28b7e39c5c_1642774535_SIGNATURE.pdf",
          "file_size": null,
          "file_hash": null,
          "keywords": {
            "prescriptionUuid": "7ccc019a-f819-49fc-b11e-3d28b7e39c5c",
            "uuid": "65da987b-b194-42ee-b4c3-1f9d11cc6d02",
            "date": "21/01/2022 11:15:16"
          },
          "created_at": "2022-01-21 11:15:29",
          "updated_at": "2022-01-21 11:15:46",
          "deleted_at": null
        }
      ]
    },
    "links": {
      "self": "https://integrations.api.memed.com.br/v1/prescricoes/7419"
    },
    "relationships": {
      "clinica": null,
      "paciente": {
        "data": {
          "id": 94143,
          "type": "pacientes"
        },
        "links": {
          "self": "https://integrations.api.memed.com.br/v1/prescricoes/relationships/paciente"
        }
      }
    },
    "id": 7419
  }
}

Capturar histórico de prescrições

tags: recuperar histórico, histórico de prescrição

É possível recuperar o histórico de prescrições do médico. A seguinte requisição retorna as 10 ultimas prescrições do prescrito por padrão.

Para um intervalo maior que 10 prescrições, basta informar o atributo page[limit] com o limite desejado (Máx 50)

Exemplo de resposta da requisição
{
  "data": [
    {
      "type": "prescricoes",
      "attributes": {
        "prescriptionUuid": "7ccc019a-f819-49fc-b11e-3d28b7e39c5c",
        "medicos_id": 26979,
        "prescricao_editada_id": null,
        "lme": false,
        "opcoes_receituario_id": 1,
        "nome_medico": "Riva Junior",
        "endereco_medico": "",
        "cidade_medico": "",
        "telefone_medico": "(99) 99999-9999",
        "checksum": null,
        "workplace": [],
        "created_at": "21/01/2022 11:15:16",
        "screening": "{\"total\":\"0\",\"status\":\"success\",\"problems\":\"0\"}",
        "source": "",
        "signed": 0,
        "renew": 0,
        "data": "21/01/2022",
        "horario": "11:15:16",
        "additionalData": [],
        "prescriptionDate": "21/01/2022",
        "print_config": "{\"simple\":{\"all\":{\"print\":true,\"showDate\":true,\"copies\":{\"21\\/01\\/2022\":1},\"isSplitItems\":false}}}",
        "prescriptionDateOriginal": "2022-01-21 11:15:16",
        "paciente": {
          "id": 94143,
          "external_id": null,
          "category_condition_id": null,
          "nome": "riva",
          "nome_completo": null,
          "nome_social": null,
          "peso": null,
          "altura": null,
          "rg": null,
          "cpf": "00000000000",
          "data_nascimento": null,
          "nome_mae": null,
          "dificuldade_locomocao": false,
          "nome_responsavel": null,
          "email": null,
          "telefone": null,
          "cidade": null,
          "endereco": null,
          "accept_terms": 0,
          "total": 1,
          "type": "pacientes",
          "_relationships": {
            "allergy": []
          },
          "ultima": "21/01/2022 11:15:16",
          "allergy": []
        },
        "medicamentos": [
          {
            "id": "a1046503030027106379",
            "nome": "Dipirona, Comprimido (10un)",
            "descricao": null,
            "posologia": "<p>Tomar 1 comprimido até de 6 em 6 horas, se necessário.</p>",
            "quantidade": 1,
            "unit": "embalagem",
            "formas_fisicas_unidades_id": null,
            "composicao": "",
            "fabricante": "Neo Química",
            "titularidade": "Genérico",
            "controle_especial": false,
            "alto_custo": false,
            "quantidade_mes_1": null,
            "quantidade_mes_2": null,
            "quantidade_mes_3": null,
            "quantidade_mes_4": null,
            "quantidade_mes_5": null,
            "quantidade_mes_6": null,
            "anamnese": "",
            "tratamento_previo": false,
            "descricao_tratamento": "",
            "data_solicitacao": null,
            "cid_id": 0,
            "receituario": "Simples",
            "exames_sus_codigo": "",
            "exames_tuss_codigo": "",
            "tipo_exame_selecionado": "",
            "catmat_codigo_br": "",
            "catmat_descricao": "",
            "cid_descricao": "",
            "cid_numero": "",
            "preco": 13,
            "real_id": 19862,
            "tarja": "Livre",
            "tipo": "alopático",
            "exames": [],
            "fabricante_id": "f156",
            "sanitized_posology": "Tomar 1 comprimido até de 6 em 6 horas, se necessário.",
            "form_units": [
              {
                "id": 27,
                "singular": "Comprimido",
                "plural": "Comprimidos",
                "type": "formas-fisicas-unidades"
              }
            ],
            "psp": {
              "active": false,
              "tagline": null,
              "link": null
            },
            "via": null,
            "receituario_id": 12
          }
        ],
        "clinica": null,
        "medicos": {
          "id": "m26979",
          "especialidades_id": 5,
          "cidades_id": 2395,
          "nome_completo": "Riva Junior",
          "cns": null,
          "crm": "0000",
          "uf": "SP",
          "estudante": 0,
          "telefone": "(99) 99999-9999",
          "type": "medicos"
        },
        "documents": [
          {
            "id": 68,
            "uuid": "114383e7-c833-40e5-9a3d-4cc9509be1db",
            "type": "full",
            "status": "saved",
            "prescription_id": 7419,
            "prescription_uuid": "7ccc019a-f819-49fc-b11e-3d28b7e39c5c",
            "prescription_origin": null,
            "prescription_item_id": null,
            "signed": 0,
            "signed_by": null,
            "file_name": "7ccc019a-f819-49fc-b11e-3d28b7e39c5c_1642774535_FULL.pdf",
            "file_size": null,
            "file_hash": "aa339c2446f79d217c2d3d57e89e910bb7dae4d591c259f8a09bb9e0ef74d07eb0c8374dd2d273c705b03ef58efbea6b0e79750f70bedaf38efe72a111d3c53e",
            "keywords": {
              "prescriptionUuid": "7ccc019a-f819-49fc-b11e-3d28b7e39c5c",
              "uuid": "114383e7-c833-40e5-9a3d-4cc9509be1db",
              "date": "21/01/2022 11:15:16"
            },
            "created_at": "2022-01-21 11:15:29",
            "updated_at": "2022-01-21 11:15:44",
            "deleted_at": null
          },
          {
            "id": 69,
            "uuid": "5cccf58d-3bf0-4432-9799-123b0b1755e6",
            "type": "individual",
            "status": "saved",
            "prescription_id": 7419,
            "prescription_uuid": "7ccc019a-f819-49fc-b11e-3d28b7e39c5c",
            "prescription_origin": null,
            "prescription_item_id": 19862,
            "signed": 0,
            "signed_by": null,
            "file_name": "7ccc019a-f819-49fc-b11e-3d28b7e39c5c_1642774535_19862.pdf",
            "file_size": null,
            "file_hash": "028e1196d3d5a23ae7ad17037251d47ce42e9c48f734881579f0e9d6d0e2a28a98542556da54e9940727fb711520e995744c1438b6d04010aafb1d200ae7a0e8",
            "keywords": {
              "prescriptionUuid": "7ccc019a-f819-49fc-b11e-3d28b7e39c5c",
              "uuid": "5cccf58d-3bf0-4432-9799-123b0b1755e6",
              "date": "21/01/2022 11:15:16"
            },
            "created_at": "2022-01-21 11:15:29",
            "updated_at": "2022-01-21 11:15:45",
            "deleted_at": null
          },
          {
            "id": 70,
            "uuid": "65da987b-b194-42ee-b4c3-1f9d11cc6d02",
            "type": "signature",
            "status": "saved",
            "prescription_id": 7419,
            "prescription_uuid": "7ccc019a-f819-49fc-b11e-3d28b7e39c5c",
            "prescription_origin": null,
            "prescription_item_id": null,
            "signed": 0,
            "signed_by": null,
            "file_name": "7ccc019a-f819-49fc-b11e-3d28b7e39c5c_1642774535_SIGNATURE.pdf",
            "file_size": null,
            "file_hash": null,
            "keywords": {
              "prescriptionUuid": "7ccc019a-f819-49fc-b11e-3d28b7e39c5c",
              "uuid": "65da987b-b194-42ee-b4c3-1f9d11cc6d02",
              "date": "21/01/2022 11:15:16"
            },
            "created_at": "2022-01-21 11:15:29",
            "updated_at": "2022-01-21 11:15:46",
            "deleted_at": null
          }
        ]
      },
      "links": {
        "self": "https://integrations.api.memed.com.br/v1/prescricoes/7419"
      },
      "relationships": {
        "clinica": null,
        "paciente": {
          "data": {
            "id": 94143,
            "type": "pacientes"
          },
          "links": {
            "self": "https://integrations.api.memed.com.br/v1/prescricoes/relationships/paciente"
          }
        }
      },
      "id": 7419
    }
  ],
  "links": {
    "self": "https://integrations.api.memed.com.br/prescricoes"
  },
  "meta": {
    "total": 1,
    "total_meses": {
      "01/2022": 1
    },
    "limit": 10
  }
}

Remover uma prescrição

tags: excluir prescrição, apagar prescrição

É possível remover via API através de seu identificador. Veja a requisição abaixo.

Consultar princípios ativos

tags: buscar princípios ativos, listar princípios ativos

Exemplo de resposta da requisição
{
  "data": [
    {
      "type": "ingredient",
      "attributes": {
        "unii": "n.d.",
        "slug": "acetaminofeno",
        "base": 1,
        "radical": null,
        "related": "Paracetamol",
        "name": "Acetaminofeno",
        "name_en": null
      },
      "links": {
        "self": "https://integrations.api.memed.com.br/v1/ingredient/2103"
      },
      "id": 2103
    }
  ],
  "links": {
    "self": "https://integrations.api.memed.com.br/ingredient"
  },
  "meta": {
    "total": 1
  }
}

Link da receita digital do paciente.

Exemplo de resposta da requisição
{
  "data": [
    {
      "type": "prescricoes",
      "attributes": {
        "link": "https://integrations.memed.com.br/p/61jFzi"
        "digits": 1234
      }
    }
  ],
  "links": {
    "self": "https://integrations.api.memed.com.br/prescricoes"
  },
  "meta": {
    "total": 1
  }
}
  • O link da receita e o código de desbloqueio são fixos, podendo ser armazenados em banco de dados;

  • Ao implementar essa opção, SEMPRE informe o código de desbloqueio para o paciente no local em que for exibir o link.

Caso necessite salvar o PDF da prescrição em seu sistema, utilize a seguinte requisição.

Exemplo de resposta da requisição
{
  "data": [
    {
      "type": "prescricoes",
      "attributes": {
        "link": "https://integrations.api.memed.com.br/v1/prescricoes/XeFoKG/pdf?document=51a5a220-bd35-45e3-aaff-7de34a2434a0",
        "signed": 0
      }
    }
  ],
  "links": {
    "self": "https://integrations.api.memed.com.br/prescricoes"
  },
  "meta": {
    "total": 1
  }
}

Last updated