# 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
        log_in_provider(self.client, build_provider())

        self.contact_method = ContactMethod.objects.create(
            name="Carrier Pidgeon")

        self.contact_result = ContactResult.objects.create(
            name="Reached on phone", patient_reached=True)

        self.pt = Patient.objects.create(
            first_name="Juggie",
            last_name="Brodeltein",
            middle_name="Bayer",
            phone='+49 178 236 5288',
            gender=Gender.objects.first(),
            address='Schulstrasse 9',
            city='Munich',
            state='BA',
            zip_code='63108',
            pcp_preferred_zip='63018',
            date_of_birth=datetime.date(1990, 0o1, 0o1),
            patient_comfortable_with_english=False,
            preferred_contact_method=self.contact_method,
        )

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


# 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

        log_in_provider(self.client, build_provider())

        self.contact_method = ContactMethod.objects.create(
            name="Carrier Pidgeon")

        self.contact_result = ContactResult.objects.create(
            name="Reached on phone", patient_reached=True)

        self.pt = Patient.objects.create(
            first_name="Juggie",
            last_name="Brodeltein",
            middle_name="Bayer",
            phone='+49 178 236 5288',
            gender=Gender.objects.first(),
            address='Schulstrasse 9',
            city='Munich',
            state='BA',
            zip_code='63108',
            pcp_preferred_zip='63018',
            date_of_birth=datetime.date(1990, 0o1, 0o1),
            patient_comfortable_with_english=False,
            preferred_contact_method=self.contact_method,
        )

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


        self.no_show_reason = NoShowReason.objects.create(name="Hella busy.")