Histórico da Página
...
Criar as seguintes tabelas:
MP2XXX_DRUG_INT_HYPO - Tabela que irá guardar os itens de hipoglicemia que estão em uma interação.
MP2XXX_DRUG_INT_INS_FIXED - Tabela que irá guardar as insulinas fixas que estão em uma interação.
MP2XXX_DRUG_INT_HYPER - Tabela que irá guardar os itens de hyperglicemia que estão em uma interação.
Alterar a tabela MP2093_HYPOGLYCEMIA e incluir fk para a tabela MP2XXX_DRUG_INTERACTION.
Alterar a tabela MP2092_INSULIN_FIXED e incluir fk para a tabela MP2XXX_DRUG_INTERACTION.
Alterar a tabela MP2094_HYPERGLYCEMIA e incluir fk para a tabela MP2XXX_DRUG_INTERACTION.
...
Obs: Antes de iniciar está tarefa, deve-se ter sido finalizada a tarefa ER_PCREQ-10172_PEP_Alergia_Justificativa_de_uso_de_Principio_Ativo, pois existem dependências entre tabelas.
Alterações no projeto
Projeto TOTVS.PEP.DataAccessLayer
Criar classes DAL para tabelas MP2XXX_DRUG_INTERACTION, MP2XXX_DRUG_INT_MEDICATION, MP2XXX_DRUG_INT_INHALATION, MP2XXX_DRUG_INT_SOLUTION, MP2XXX_DRUG_INT_HYPO, MP2XXX_DRUG_INT_INS_FIXED, MP2XXX_DRUG_INT_HYPER,
...
Alterar classes DAL MP2055_UNIT, MP2006_MEDICATION, MP2020_INHALATION_ITEM, MP2026_SOLUTION_ITEM, MP2093_HYPOGLYCEMIA, MP2092_INSULIN_FIXED, MP2094_HYPERGLYCEMIA.
Projeto TOTVS.PEP.Entities
alterar Unit para RN005
Para RN003 devem ser alteradas e criadas as seguintes classes:
...
Para RN006 deve ser criada a classe JustificationDrugInteraction herdando de Justification.
Projeto TOTVS.PEP.BusinessLayer
alterar UnitService para RN005
Para RN003 criar classe para cada tabela nova criada, MP2XXX_DRUG_INTERACTION, MP2XXX_DRUG_INT_MEDICATION, MP2XXX_DRUG_INT_INHALATION, MP2XXX_DRUG_INT_SOLUTION, MP2XXX_DRUG_INT_HYPO,
...
alterar classes PrescriptionMedicationService, PrescriptionInhalationItemService, PrescriptionSolutionItemService, PrescriptionInsulinFixedService, HyperglycemiaService, HypoglycemiaService.
Para RN006 criar a classe JustificationDrugInteractionService.
Projeto TOTVS.PEP.Wrappers
alterar UnitWrapper para RN005
Para RN002, RN003, RN004 devem devem ser alteradas e criadas as seguintes classes:
Criar classe AllergyGenericNameWrapper.
wrapper para cada tabela nova criada, MP2XXX_DRUG_INTERACTION, MP2XXX_DRUG_INT_MEDICATION, MP2XXX_DRUG_INT_INHALATION, MP2XXX_DRUG_INT_SOLUTION, MP2XXX_DRUG_INT_HYPO,
MP2XXX_DRUG_INT_INS_FIXED,MP2XXX_DRUG_INT_HYPERAlterar classe AllergyWrapper para chamar a AllergyGenericNameWrapper.
Para RN006 devem ser alteradas e criadas as seguintes classes:
Criar classe JustificationDrugInteractionWrapper.
Projeto TOTVS.PEP.Integration
Alterar classe JustificationWrapper,AntibioticJustificationWrapper.
Para RN006 alterar classe EnumTypes JustificationType, adicionar novo tipo "Interação medicamentosa"
Projeto TOTVS.PEP.Adapters
Para RN003, RN006 alterar classe PrescriptionAdapter
Necessário atualizar a referência para os serviços WCF do PEP Server.
Projeto TOTVS.PEP.Client
Para RN005 alterar as seguintes classes:
PEP.Tabs.Entries.UnitConfigurationPage.xaml
PEP.Tabs.Entries.UnitConfigurationPage.xaml.cs
Para RN006 alterar as seguintes classes:
PEP.Tabs.MedicalPrescription.cs
PEP.UserControls.MedicationPrescriptionUserControl.xaml
PEP.UserControls.MedicationPrescriptionUserControl.xaml.cs
PEP.UserControls.ComponentPrescriptionUserControl.xaml
PEP.UserControls.ComponentPrescriptionUserControl.xaml.cs
PEP.UserControls.Insulins.FixedOrVariableInsulinUserControl.xaml
PEP.UserControls.Insulins.FixedOrVariableInsulinUserControl.xaml.cs
PEP.UserControls.InalationPrescriptionUserControl.xaml
PEP.UserControls.InalationPrescriptionUserControl.xaml.cs
Para RN007 alterar as seguintes classes:
TOTVS.PEP.Client.Helpers.JustificationDescriptionFactory.cs
PEP.UserControls.InalationPrescriptionUserControl.xaml.cs
PEP.UserControls.MedicationPrescriptionUserControl.xaml.cs
PEP.UserControls.ComponentPrescriptionUserControl.xaml.cs
PEP.UserControls.Insulins.FixedOrVariableInsulinUserControl.xaml.cs
PEP.UserControls.InsulinPrescriptionUserControl.xaml.cs
PEP.CustomControls.AppointmentChart.AppointmentChart.xaml.cs
PEP.UserControls.PrescriptionItemsGrid.xaml.cs
PEP.BindEntities.BindingPrescriptionItemClinicalHistoryCriar wrapper para cada tabela nova criada, JUST_MEDICATION, JUST_SOLUTION_ITEM, JUST_HYPOGLYCEMIA, JUST_HYPERGLYCEMIA, JUST_INSULIN_FIXED, JUST_INHALATION_ITEM.