# Path: followup/models.py
# class NoShowReason(models.Model):
# class NoAptReason(models.Model):
# class ContactResult(models.Model):
# class Followup(Note):
#     class Meta(object):
# class GeneralFollowup(Followup):
# class VaccineFollowup(Followup):
# class LabFollowup(Followup):
# class ReferralFollowup(Followup):
#     def __str__(self):
#     def __str__(self):
#     def __str__(self):
#     def type(self):
#     def short_text(self):
#     def attribution(self):
#     def written_date(self):
#     def __str__(self):
#     def type(self):
#     def short_text(self):
#     def type(self):
#     def short_text(self):
#     def type(self):
#     def short_text(self):
#     SUBSQ_DOSE_HELP = "Has the patient committed to coming back for another dose?"
#     DOSE_DATE_HELP = "When does the patient want to get their next dose (if applicable)?"
#     CS_HELP = "Were you able to communicate the results?"
#     REFTYPE_HELP = "What kind of provider was the patient referred to?"
#     APP_HELP = "Where is the appointment?"
#     PTSHOW_OPTS = [("Yes", "Yes"),
#                    ("No", "No"),
#                    ("Not yet", "Not yet")]
#     PTSHOW_HELP = "Did the patient show up to the appointment?"
#     NOAPT_HELP = "If the patient didn't make an appointment, why not?"
#     NOSHOW_HELP = "If the patient didn't go to appointment, why not?"


from builtins import zip
from django.test import TestCase
from itertools import *
from django.core.urlresolvers import reverse
from django.utils.timezone import now
from followup.models import (
    ContactMethod, NoAptReason, NoShowReason, ContactResult)
from pttrack.models import (
    Gender, Patient, Provider, ProviderType, ReferralType, ReferralLocation
)
from . import forms
from . import models
        from pttrack.test_views import log_in_provider, build_provider
        from pttrack.test_views import log_in_provider, build_provider
        from pttrack.test_views import log_in_provider, build_provider
        from pttrack.test_views import log_in_provider, build_provider
        from pttrack.test_views import log_in_provider, build_provider
import datetime
            preferred_contact_method=self.contact_method,
        )

        reftype = ReferralType.objects.create(
            name="Specialty", is_fqhc=False)
        refloc = ReferralLocation.objects.create(
            name='COH', address='Euclid Ave.')
        refloc.care_availiable.add(reftype)

        self.referral = models.Referral.objects.create(
            comments="Needs his back checked",
            status=models.Referral.STATUS_PENDING,
            kind=reftype,
            author=Provider.objects.first(),
            author_type=ProviderType.objects.first(),
            patient=self.pt
        )
        self.referral.location.add(refloc)

        self.followup_request = models.FollowupRequest.objects.create(
            referral=self.referral,
            contact_instructions="Call him",
            due_date=datetime.date(2018, 9, 0o1),
            author=Provider.objects.first(),
            author_type=ProviderType.objects.first(),
            patient=self.pt
        )

        self.successful_res = ContactResult.objects.create(
            name="Got him", patient_reached=True)

# Path: followup/models.py
# class NoShowReason(models.Model):
# class NoAptReason(models.Model):
# class ContactResult(models.Model):
# class Followup(Note):
#     class Meta(object):
# class GeneralFollowup(Followup):
# class VaccineFollowup(Followup):
# class LabFollowup(Followup):
# class ReferralFollowup(Followup):
#     def __str__(self):
#     def __str__(self):
#     def __str__(self):
#     def type(self):
#     def short_text(self):
#     def attribution(self):
#     def written_date(self):
#     def __str__(self):
#     def type(self):
#     def short_text(self):
#     def type(self):
#     def short_text(self):
#     def type(self):
#     def short_text(self):
#     SUBSQ_DOSE_HELP = "Has the patient committed to coming back for another dose?"
#     DOSE_DATE_HELP = "When does the patient want to get their next dose (if applicable)?"
#     CS_HELP = "Were you able to communicate the results?"
#     REFTYPE_HELP = "What kind of provider was the patient referred to?"
#     APP_HELP = "Where is the appointment?"
#     PTSHOW_OPTS = [("Yes", "Yes"),
#                    ("No", "No"),
#                    ("Not yet", "Not yet")]
#     PTSHOW_HELP = "Did the patient show up to the appointment?"
#     NOAPT_HELP = "If the patient didn't make an appointment, why not?"
#     NOSHOW_HELP = "If the patient didn't go to appointment, why not?"


# Path: referral/tests.py
from builtins import zip
from django.test import TestCase
from itertools import *
from django.core.urlresolvers import reverse
from django.utils.timezone import now
from followup.models import (
    ContactMethod, NoAptReason, NoShowReason, ContactResult)
from pttrack.models import (
    Gender, Patient, Provider, ProviderType, ReferralType, ReferralLocation
)
from . import forms
from . import models
        from pttrack.test_views import log_in_provider, build_provider
        from pttrack.test_views import log_in_provider, build_provider
        from pttrack.test_views import log_in_provider, build_provider
        from pttrack.test_views import log_in_provider, build_provider
        from pttrack.test_views import log_in_provider, build_provider
import datetime

            preferred_contact_method=self.contact_method,
        )

        reftype = ReferralType.objects.create(
            name="Specialty", is_fqhc=False)
        refloc = ReferralLocation.objects.create(
            name='COH', address='Euclid Ave.')
        refloc.care_availiable.add(reftype)

        self.referral = models.Referral.objects.create(
            comments="Needs his back checked",
            status=models.Referral.STATUS_PENDING,
            kind=reftype,
            author=Provider.objects.first(),
            author_type=ProviderType.objects.first(),
            patient=self.pt
        )
        self.referral.location.add(refloc)

        self.followup_request = models.FollowupRequest.objects.create(
            referral=self.referral,
            contact_instructions="Call him",
            due_date=datetime.date(2018, 9, 0o1),
            author=Provider.objects.first(),
            author_type=ProviderType.objects.first(),
            patient=self.pt
        )

        self.successful_res = ContactResult.objects.create(
            name="Got him", patient_reached=True)

        self.unsuccessful_res = ContactResult.objects.create(