<reponame>rajshruti18/pdspdi-mock-fhir<filename>api/openAPI3/__init__.py
from pdsdpimockfhir import dispatcher
import sys

def get_patient(patient_id):
    return dispatcher.get_patient(patient_id)

def get_observation(patient):
    return dispatcher.get_observation(patient)

def get_condition(patient):
    return dispatcher.get_condition(patient)

def post_bundle(body):
    return dispatcher.post_bundle(body)

def post_patient(body):
    print(f"posting patient {body}")
    sys.stdout.flush()
    return dispatcher.post_patient(body)

def post_observation(body):
    print(f"posting observation {body}")
    sys.stdout.flush()   
    return dispatcher.post_observation(body)

def post_condition(body):
    return dispatcher.post_condition(body)

def delete_resource():
    return dispatcher.delete_resource()

def delete_patient():
    return dispatcher.delete_patient()

def delete_observation():
    return dispatcher.delete_observation()

def delete_condition():
    return dispatcher.delete_condition()




from pdsdpimockfhir import dispatcher
import sys

def get_patient(patient_id):
    return dispatcher.get_patient(patient_id)

def get_observation(patient):
    return dispatcher.get_observation(patient)

def get_condition(patient):
    return dispatcher.get_condition(patient)

def post_bundle(body):
    return dispatcher.post_bundle(body)

def post_patient(body):
    print(f"posting patient {body}")
    sys.stdout.flush()
    return dispatcher.post_patient(body)

def post_observation(body):
    print(f"posting observation {body}")
    sys.stdout.flush()   
    return dispatcher.post_observation(body)

def post_condition(body):
    return dispatcher.post_condition(body)

def delete_resource():
    return dispatcher.delete_resource()

def delete_patient():
    return dispatcher.delete_patient()

def delete_observation():
    return dispatcher.delete_observation()

def delete_condition():
    return dispatcher.delete_condition()