示例#1
0
class Fp17Pathway(OdontoPagePathway):
    display_name = 'FP17 claim form'
    slug = 'fp17'
    steps = (
        pathway.Step(
            model=models.Fp17DentalCareProvider,
            step_controller="CareProviderStepCtrl",
        ),
        pathway.Step(model=models.Demographics),
        pathway.Step(
            model=models.Fp17IncompleteTreatment,
            step_controller="FP17TreatmentStepCtrl",
        ),
        pathway.Step(model=models.Fp17Exemptions),
        pathway.Step(model=models.Fp17ClinicalDataSet),
        pathway.Step(model=models.Fp17OtherDentalServices),
        pathway.Step(model=models.Fp17TreatmentCategory),
        pathway.Step(model=models.Fp17Recall),
        pathway.Step(
            model=models.Fp17Declaration,
            display_name="Declaration",
            base_template="pathway/steps/declaration_base_template.html"),
    )

    @transaction.atomic
    def save(self, data, user=None, patient=None, episode=None):
        patient, episode = super().save(data,
                                        user=user,
                                        patient=patient,
                                        episode=episode)
        episode.stage = 'Open'
        episode.save()
        return patient, episode
示例#2
0
class Fp17OPathway(OdontoPagePathway):
    display_name = 'FP17O claim form'
    slug = 'fp17o'
    steps = (
        pathway.Step(
            model=models.Fp17DentalCareProvider,
            step_controller="CareProviderStepCtrl",
        ),
        pathway.Step(model=models.Demographics),
        pathway.Step(model=models.Fp17Exemptions),
        pathway.Step(model=models.OrthodonticDataSet),
        pathway.Step(model=models.OrthodonticAssessment),
        pathway.Step(model=models.OrthodonticTreatment),
        pathway.Step(
            model=models.Fp17Declaration,
            display_name="Declaration",
            base_template="pathway/steps/declaration_base_template.html"),
    )

    @transaction.atomic
    def save(self, data, user=None, patient=None, episode=None):
        patient, episode = super().save(data,
                                        user=user,
                                        patient=patient,
                                        episode=episode)
        episode.stage = 'Open Orthodontic'
        episode.save()
        return patient, episode
示例#3
0
class CompleteFP17Pathway(Fp17Pathway):
    display_name = "Submit FP17"
    slug = "complete-fp17"
    finish_button_text = "Submit to BSA"

    steps = (
        pathway.Step(
            model=models.Fp17DentalCareProvider,
            step_controller="CareProviderStepCtrl",
        ),
        pathway.Step(model=models.Demographics),
        pathway.Step(model=models.Fp17IncompleteTreatment,
                     step_controller="FP17TreatmentStepCtrl",
                     template="".join([
                         "pathway/steps/complete_fp17_pathway/"
                         "fp17_incomplete_treatment_form.html"
                     ])),
        pathway.Step(model=models.Fp17Exemptions),
        pathway.Step(model=models.Fp17ClinicalDataSet),
        pathway.Step(step_controller="FP17IncompleteTreatmentCtrl",
                     model=models.Fp17OtherDentalServices,
                     template="".join([
                         "pathway/steps/complete_fp17_pathway/"
                         "fp17_other_dental_services_form.html"
                     ])),
        pathway.Step(model=models.Fp17TreatmentCategory),
        pathway.Step(model=models.Fp17Recall),
        pathway.Step(
            model=models.Fp17Declaration,
            display_name="Declaration",
            base_template="pathway/steps/declaration_base_template.html"),
    )

    def save(self, data, user=None, patient=None, episode=None):
        patient, episode = super().save(data,
                                        user=user,
                                        patient=patient,
                                        episode=episode)
        episode.stage = 'Submitted'
        episode.save()
        patient.create_episode(stage="New")
        # serializer = serializers.FP17Serializer(episode, user)
        # serializer.save()
        return patient, episode
示例#4
0
class Fp17Pathway(OdontoPagePathway):
    display_name = 'FP17 Claim Form'
    slug = 'fp17'
    steps = (
        pathway.Step(
            model=models.Demographics,
            display_name='Demographics',
        ),
        pathway.Step(model=models.Fp17DentalCareProvider,
                     display_name="Care Provider",
                     step_controller="CareProviderStepCtrl"),
        pathway.Step(model=models.Fp17IncompleteTreatment,
                     step_controller="FP17TreatmentStepCtrl"),
        pathway.Step(model=models.Fp17Exemptions,
                     display_name="Exemptions and Remissions"),
        pathway.Step(model=models.Fp17TreatmentCategory,
                     display_name="Treatment Category"),
        pathway.Step(model=models.Fp17ClinicalDataSet,
                     display_name="Clinical Data Set"),
        pathway.Step(model=models.Fp17OtherDentalServices,
                     display_name="Other Services"),
        pathway.Step(model=models.Fp17Recall, display_name="NICE Guidance"),
        pathway.Step(model=models.Fp17Declaration, display_name="Declaration"),
    )
示例#5
0
class RequestEpiduralPathway(pathway.PagePathway):
    display_name = "Request Epidural"
    slug = "request_epidural"

    steps = (pathway.Step(model=models.EpiduralRequest), )