From 9ae0e765c969f0aff53a69eb216eff22a466110f Mon Sep 17 00:00:00 2001 From: stevencarlislewalker Date: Wed, 11 Sep 2024 09:01:40 -0400 Subject: [PATCH] new lookup type --- python/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/main.py b/python/main.py index e405888e..a2fc22b9 100644 --- a/python/main.py +++ b/python/main.py @@ -206,9 +206,9 @@ async def data_dictionary(): @app.get("/lookup_tables", responses={200: {"content": {"text/plain": {}}}}, response_class=StreamingResponse) async def lookup_tables(lookup_type: str = Query("location" , description='Type of lookup table.' - , enum=["location", "disease", "sex", "canmod-disease-lookup", "canmod-location-lookup"] + , enum=["location", "disease", "sex", "canmod-disease-lookup", "canmod-location-lookup", "phac-to-canmod-disease-lookup"] )): - available_lookup_types = ["location", "disease", "sex", "canmod-disease-lookup", "canmod-location-lookup"] + available_lookup_types = ["location", "disease", "sex", "canmod-disease-lookup", "canmod-location-lookup", "phac-to-canmod-disease-lookup"] if lookup_type not in available_lookup_types: raise HTTPException( status_code=400, detail=f"'{lookup_type}' is not a valid resource_type. Available values are {available_lookup_types}")