<template lang="pug">
  .wrapper.flex.gap-x-2
    medical-protocols-list(:open-inspection="openInspection", :create-inspection="createInspection")
    medical-protocols-inspection(:inspection="inspection", :fill-inspection="fillInspection")
</template>

<script>
import MedicalProtocolsList from "@/pages/newMedicalCard/components/InitialInspectionProtocol/MedicalProtocolsList.vue";
import MedicalProtocolsInspection from "@/pages/newMedicalCard/components/InitialInspectionProtocol/MedicalProtocolsInspection.vue";
export default {
  name: "MedicalProtocolsWrapper",
  components: { MedicalProtocolsList, MedicalProtocolsInspection },
  data() {
    return {
      inspection: false,
      fillInspection: false,
    };
  },
  methods: {
    openInspection() {
      this.inspection = true;
      this.fillInspection = false;
    },
    createInspection() {
      this.fillInspection = true;
      this.inspection = false;
    },
  },
};
</script>

<style lang="sass" scoped>
.wrapper
  flex: 1
  overflow-y: auto
</style>
