<issue_start><issue_comment>Title: Having trouble viewing patient after apparently successful install
username_0: quick_server.pyc (745):    5.194ms [2015-12-23 14:32:13] 1.36 kB "GET /patient-viz/style.css HTTP/1.1" 304
quick_server.pyc (745):    5.488ms [2015-12-23 14:32:13] 143 kB "GET /patient-viz/lib/jk-js/lib/d3/d3.min.js HTTP/1.1" 304
quick_server.pyc (745):    6.064ms [2015-12-23 14:32:13] 18.5 kB "GET /patient-viz/lib/colorbrewer/colorbrewer.js HTTP/1.1" 304
quick_server.pyc (745):    4.261ms [2015-12-23 14:32:13] 3.49 kB "GET /patient-viz/lib/jk-js/jkjs/busy.js HTTP/1.1" 304
quick_server.pyc (745):    3.114ms [2015-12-23 14:32:13] 107 kB "GET /patient-viz/lib/jk-js/lib/bootstrap/css/bootstrap.min.css HTTP/1.1" 304
quick_server.pyc (745):    5.029ms [2015-12-23 14:32:13] 5.64 kB "GET /patient-viz/lib/jk-js/jkjs/zui.js HTTP/1.1" 304
quick_server.pyc (745):    0.265ms [2015-12-23 14:32:13] 682 B "GET /patient-viz/lib/jk-js/jkjs/time.js HTTP/1.1" 304
quick_server.pyc (745):    2.390ms [2015-12-23 14:32:13] 5.28 kB "GET /patient-viz/lib/jk-js/jkjs/text.js HTTP/1.1" 304
quick_server.pyc (745):    1.419ms [2015-12-23 14:32:13] 2.81 kB "GET /patient-viz/lib/jk-js/jkjs/path.js HTTP/1.1" 304
quick_server.pyc (745):    1.823ms [2015-12-23 14:32:13] 12.3 kB "GET /patient-viz/lib/jk-js/jkjs/util.js HTTP/1.1" 304
quick_server.pyc (745):    3.531ms [2015-12-23 14:32:13] 17.5 kB "GET /patient-viz/lib/jk-js/jkjs/stat.js HTTP/1.1" 304
quick_server.pyc (745):    0.363ms [2015-12-23 14:32:13] 34.2 kB "GET /patient-viz/js/typepool.js HTTP/1.1" 304
quick_server.pyc (745):    0.311ms [2015-12-23 14:32:13] 14.3 kB "GET /patient-viz/js/type.js HTTP/1.1" 304
quick_server.pyc (745):    0.279ms [2015-12-23 14:32:13] 7.65 kB "GET /patient-viz/js/event.js HTTP/1.1" 304
quick_server.pyc (745):    1.996ms [2015-12-23 14:32:13] 2.55 kB "GET /patient-viz/js/overview.js HTTP/1.1" 304
quick_server.pyc (745):    1.766ms [2015-12-23 14:32:13] 4.26 kB "GET /patient-viz/js/eventview.js HTTP/1.1" 304
quick_server.pyc (745):    1.628ms [2015-12-23 14:32:13] 12.6 kB "GET /patient-viz/js/typeview.js HTTP/1.1" 304
quick_server.pyc (745):    0.342ms [2015-12-23 14:32:13] 2.38 kB "GET /patient-viz/js/linechart.js HTTP/1.1" 304
quick_server.pyc (745):    0.280ms [2015-12-23 14:32:13] 4.14 kB "GET /patient-viz/js/histogram.js HTTP/1.1" 304
quick_server.pyc (745):    0.251ms [2015-12-23 14:32:13] 10.6 kB "GET /patient-viz/js/labels.js HTTP/1.1" 304
quick_server.pyc (745):    1.285ms [2015-12-23 14:32:13] 3.26 kB "GET /patient-viz/js/cluster.js HTTP/1.1" 304
quick_server.pyc (745):    1.011ms [2015-12-23 14:32:13] 18 kB "GET /patient-viz/js/shared.js HTTP/1.1" 304
quick_server.pyc (745):    2.025ms [2015-12-23 14:32:13] 1.64 kB "GET /patient-viz/lib/jk-js/jkjs/img/warning.png HTTP/1.1" 304
quick_server.pyc (745):    2.953ms [2015-12-23 14:32:13] 7.19 kB "GET /patient-viz/lib/jk-js/jkjs/img/busy.gif HTTP/1.1" 304
SELECT person_source_value, year_of_birth, gender_source_value FROM public.person WHERE person_id = '123';
SELECT person_source_value, year_of_birth, gender_source_value FROM public.person WHERE person_id = '123';
SELECT
            o.condition_occurrence_id as id_row,
            o.condition_start_date as date_start,
            o.condition_end_date as date_end,
            o.condition_concept_id as d_id,
            o.condition_source_value as d_orig,
            c.domain_id as d_domain,
            c.concept_name as d_name,
            c.vocabulary_id as d_vocab,
            c.concept_code as d_num
           FROM
            public.condition_occurrence as o
           LEFT JOIN public.concept as c ON (
            c.concept_id = o.condition_concept_id
           )
           WHERE
            o.person_id = '123'
        ;
SELECT
            o.procedure_occurrence_id as id_row,
            o.procedure_date as p_date,
            o.procedure_concept_id as p_id,
            o.procedure_source_value as p_orig,
            c.domain_id as p_domain,
            c.concept_name as p_name,
            c.vocabulary_id as p_vocab,
            c.concept_code as p_num,
            p.total_paid as p_cost
           FROM
            public.procedure_occurrence as o
           LEFT JOIN public.concept as c ON (
            c.concept_id = o.procedure_concept_id
           )
           LEFT OUTER JOIN public.procedure_cost as p ON (
            p.procedure_occurrence_id = o.procedure_occurrence_id
           )
           WHERE
            o.person_id = '123'
        ;
SELECT
            o.drug_exposure_id as id_row,
            o.drug_exposure_start_date as date_start,
            o.drug_exposure_end_date as date_end,
            o.drug_concept_id as m_id,
            o.drug_source_value as m_orig,
            c.domain_id as m_domain,
            c.concept_name as m_name,
            c.vocabulary_id as m_vocab,
            c.concept_code as m_num,
            p.total_paid as m_cost
           FROM
            public.drug_exposure as o
           LEFT JOIN public.concept as c ON (
            c.concept_id = o.drug_concept_id
[Truncated]
WARNING: intra group inheritance: Observation << Procedure
WARNING: intra group inheritance: Observation << Procedure
WARNING: intra group inheritance: Observation << Procedure
WARNING: intra group inheritance: Observation << Procedure
WARNING: intra group inheritance: Observation << Procedure
WARNING: intra group inheritance: Measurement << Condition
WARNING: intra group inheritance: Measurement << Procedure
WARNING: intra group inheritance: Observation << Procedure
WARNING: intra group inheritance: Measurement << Procedure
quick_server.pyc (517): Traceback (most recent call last):
quick_server.pyc (517):   File "lib/quick_server/quick_server.py", line 619, in do_GET
quick_server.pyc (517):     if self.handle_special(True, 'GET'):
quick_server.pyc (517):   File "lib/quick_server/quick_server.py", line 392, in handle_special
quick_server.pyc (517):     f = method(self, args)
quick_server.pyc (517):   File "lib/quick_server/quick_server.py", line 990, in send_json
quick_server.pyc (517):     obj = json_producer(drh, rem_path)
quick_server.pyc (517):   File "./server.py", line 112, in get_patient
quick_server.pyc (517):     with open(cache_file, 'w') as pf:
quick_server.pyc (517): IOError: [Errno 2] No such file or directory: u'json/123'
```
<issue_comment>username_1: Hmm, is there a folder `json` in your patient-viz folder?<issue_closed>
<issue_comment>username_0: Adding a 'json' folder did the trick! Thank you.
<issue_comment>username_1: I fixed the server implementation to automatically create the `json/` folder if needed. Thanks for the report :)