text: """
  Copyright 2018 Information Systems Engineering, TU Berlin, Germany
  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at    http://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.This is being developed for the DITAS Project: https://www.ditas-project.eu/
  """
  
  from django.conf import settings
  from django.http import HttpResponse
  from time import sleep
  from random import randint
  import random
  import string
  
  
  def create_patient():
      def func():
          pass
      func.ssn=random.randint(100000,999999)
      func.last_name=(str(random.choice(string.ascii_uppercase))+ ''.join(random.choice(string.ascii_lowercase) for _ in range(12)))
      func.name = (str(random.choice(string.ascii_uppercase))+ ''.join(random.choice(string.ascii_lowercase) for _ in range(8)))
      func.gender = random.choice(["male", "female", "undefined"])
      func.email = func.name + func.last_name + str(random.choice(["@googlemail.com","@yahoo.nz","@ise.de","@gmx.net","@reddit.com","@isengart.me","@web.de","@outlook.com","@feuerbart.io"])) 
      func.birthday = random.choice(["2017-11-28T16:36:57.713Z","2057-08-06T16:34:12.433Z","2017-11-28T17:23:12.713Z","1117-11-21T16:36:57.731Z","2007-11-12T23:36:32.23Z"])
      #func.exams = create_exam_list(func.ssn,func.last_name,func.name)
      return func.__dict__
  
  def create_exam(ssn=51423, last_name="Grey", name="Dorian"):
    def func():
      pass
    func.ssn = ssn
    func.last_name = last_name
    func.name = name
    func.date = random.choice(["2017-11-28T16:36:57.713Z","2057-08-06T16:34:12.433Z","2017-11-28T17:23:12.713Z","1117-11-21T16:36:57.731Z","2007-11-12T23:36:32.23Z"])# some random Date
    func.cholesterol = random.randint(1,3000)/345.3456
    func.triglyceride = random.randint(1,11000)/345.3456
    func.hepatitis = random.choice([True, False])
    return func.__dict__
  
  def create_patient_list(size=18):
    def func():
      pass
    patients = []
    for i in range(1, int(size)):
      patients.append(create_patient())
    func.patients=patients
    return func.__dict__
  
  
  def create_exam_list(ssn=51423, last_name="Grey", name ="Dorian", size = 25):
    def func():
      pass
    exams = []
    for i in range(1, int(size)):
      exams.append(create_exam(ssn,last_name,name))
    func.exams=exams
    return func.__dict__
  
  