|
19 | 19 | # ############################################################################ |
20 | 20 |
|
21 | 21 | # ============================================================================ |
22 | | -# Project Configuration & Base Paths |
| 22 | +# Application Configuration |
23 | 23 | # ============================================================================ |
24 | 24 |
|
25 | 25 | BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) |
26 | 26 | BASE_DIR = os.path.join(BASE_DIR, "..") |
27 | 27 |
|
| 28 | +TEMPLATES = [ |
| 29 | + { |
| 30 | + "BACKEND": "django.template.backends.django.DjangoTemplates", |
| 31 | + "DIRS": [os.path.join(BASE_DIR, ("templates/"))], |
| 32 | + "APP_DIRS": True, |
| 33 | + "OPTIONS": { |
| 34 | + "context_processors": [ |
| 35 | + "django.template.context_processors.debug", |
| 36 | + "django.template.context_processors.request", |
| 37 | + "django.template.context_processors.i18n", |
| 38 | + "django.contrib.auth.context_processors.auth", |
| 39 | + "django.contrib.messages.context_processors.messages", |
| 40 | + "django_settings_export.settings_export", |
| 41 | + "hhs_oauth_server.hhs_oauth_server_context.active_apps", |
| 42 | + ], |
| 43 | + "builtins": [], |
| 44 | + }, |
| 45 | + }, |
| 46 | +] |
| 47 | + |
28 | 48 | # ============================================================================ |
29 | 49 | # Security & Keys |
30 | 50 | # ============================================================================ |
|
133 | 153 | ROOT_URLCONF = "hhs_oauth_server.urls" |
134 | 154 |
|
135 | 155 | # ============================================================================ |
136 | | -# Templates / Static Files |
| 156 | +# Static / Media Files |
137 | 157 | # ============================================================================ |
138 | 158 |
|
139 | | -TEMPLATES = [ |
140 | | - { |
141 | | - "BACKEND": "django.template.backends.django.DjangoTemplates", |
142 | | - "DIRS": [os.path.join(BASE_DIR, ("templates/"))], |
143 | | - "APP_DIRS": True, |
144 | | - "OPTIONS": { |
145 | | - "context_processors": [ |
146 | | - "django.template.context_processors.debug", |
147 | | - "django.template.context_processors.request", |
148 | | - "django.template.context_processors.i18n", |
149 | | - "django.contrib.auth.context_processors.auth", |
150 | | - "django.contrib.messages.context_processors.messages", |
151 | | - "django_settings_export.settings_export", |
152 | | - "hhs_oauth_server.hhs_oauth_server_context.active_apps", |
153 | | - ], |
154 | | - "builtins": [], |
155 | | - }, |
156 | | - }, |
157 | | -] |
158 | | - |
159 | 159 | WSGI_APPLICATION = "hhs_oauth_server.wsgi.application" |
160 | 160 |
|
161 | 161 | ASSETS_ROOT = env("DJANGO_ASSETS_ROOT", BASE_DIR) |
|
322 | 322 | } |
323 | 323 |
|
324 | 324 | # ============================================================================ |
325 | | -# Authentication / Sessions |
| 325 | +# Authentication / Sessions / Login |
326 | 326 | # ============================================================================ |
327 | 327 |
|
328 | 328 | AUTH_PROFILE_MODULE = "accounts.UserProfile" |
|
424 | 424 |
|
425 | 425 | # ############################################################################ |
426 | 426 | # ############################################################################ |
427 | | -# THIRD-PARTY PACKAGE SETTINGS |
| 427 | +# PYTHON PACKAGE SETTINGS |
428 | 428 | # ############################################################################ |
429 | 429 | # ############################################################################ |
430 | 430 |
|
|
456 | 456 | CORS_ORIGIN_ALLOW_ALL = bool_env(env("CORS_ORIGIN_ALLOW_ALL", True)) |
457 | 457 |
|
458 | 458 | # ============================================================================ |
459 | | -# django-waffle (Feature Flags) |
| 459 | +# django-waffle |
460 | 460 | # ============================================================================ |
461 | 461 |
|
462 | 462 | WAFFLE_FLAG_MODEL = "core.Flag" |
|
495 | 495 | (GRANT_IMPLICIT, _("Implicit")), |
496 | 496 | ) |
497 | 497 |
|
498 | | -BENE_PERSONAL_INFO_SCOPES = [ |
499 | | - "patient/Patient.read", |
500 | | - "patient/Patient.s", |
501 | | - "patient/Patient.r", |
502 | | - "patient/Patient.rs", |
503 | | - "profile", |
504 | | -] |
505 | | - |
506 | 498 |
|
507 | 499 | # ############################################################################ |
508 | 500 | # ############################################################################ |
509 | | -# BLUE BUTTON CUSTOM SETTINGS |
| 501 | +# BLUE BUTTON SETTINGS |
510 | 502 | # ############################################################################ |
511 | 503 | # ############################################################################ |
512 | 504 |
|
|
561 | 553 |
|
562 | 554 | DISCLOSURE_TEXT = env("DJANGO_PRIVACY_POLICY_URI", DEFAULT_DISCLOSURE_TEXT) |
563 | 555 |
|
564 | | -# ============================================================================ |
565 | | -# Settings Export (from django-settings-export) |
566 | | -# ============================================================================ |
567 | | - |
568 | | -SETTINGS_EXPORT = [ |
569 | | - "DEBUG", |
570 | | - "ALLOWED_HOSTS", |
571 | | - "APPLICATION_TITLE", |
572 | | - "THEME", |
573 | | - "STATIC_URL", |
574 | | - "STATIC_ROOT", |
575 | | - "MEDIA_URL", |
576 | | - "MEDIA_ROOT", |
577 | | - "DEVELOPER_DOCS_URI", |
578 | | - "DEVELOPER_DOCS_TITLE", |
579 | | - "ORGANIZATION_TITLE", |
580 | | - "POLICY_URI", |
581 | | - "POLICY_TITLE", |
582 | | - "DISCLOSURE_TEXT", |
583 | | - "TOS_URI", |
584 | | - "TOS_TITLE", |
585 | | - "TAG_LINE_1", |
586 | | - "TAG_LINE_2", |
587 | | - "EXPLAINATION_LINE", |
588 | | - "EXTERNAL_AUTH_NAME", |
589 | | - "ALLOW_END_USER_EXTERNAL_AUTH", |
590 | | - "OPTIONAL_INSTALLED_APPS", |
591 | | - "INSTALLED_APPS", |
592 | | - "LANGUAGE_COOKIE_NAME" |
593 | | -] |
594 | | - |
595 | 556 | # ============================================================================ |
596 | 557 | # Application Config |
597 | 558 | # ============================================================================ |
|
611 | 572 | # TODO - Verify usage, unable to find in code search |
612 | 573 |
|
613 | 574 | # ============================================================================ |
614 | | -# FHIR Server Integration |
| 575 | +# FHIR Config |
615 | 576 | # ============================================================================ |
616 | 577 |
|
617 | 578 | FHIR_CLIENT_CERTSTORE = env( |
|
639 | 600 | FHIR_POST_SEARCH_PARAM_IDENTIFIER_MBI_HASH = ( |
640 | 601 | "https://bluebutton.cms.gov/resources/identifier/mbi-hash" |
641 | 602 | ) |
| 603 | +# TODO - Move to constants |
642 | 604 |
|
643 | 605 | FHIR_POST_SEARCH_PARAM_IDENTIFIER_HICN_HASH = ( |
644 | 606 | "https://bluebutton.cms.gov/resources/identifier/hicn-hash" |
645 | 607 | ) |
| 608 | +# TODO - Move to constants |
646 | 609 |
|
647 | 610 | FHIR_PATIENT_SEARCH_PARAM_IDENTIFIER_MBI = ( |
648 | 611 | "http://hl7.org/fhir/sid/us-mbi" |
649 | 612 | ) |
| 613 | +# TODO - Move to constants |
650 | 614 |
|
651 | 615 | FHIR_PARAM_FORMAT = "json" |
652 | 616 |
|
| 617 | +BENE_PERSONAL_INFO_SCOPES = [ |
| 618 | + "patient/Patient.read", |
| 619 | + "patient/Patient.s", |
| 620 | + "patient/Patient.r", |
| 621 | + "patient/Patient.rs", |
| 622 | + "profile", |
| 623 | +] |
| 624 | + |
653 | 625 | # ============================================================================ |
654 | 626 | # Request Configuration |
655 | 627 | # ============================================================================ |
|
0 commit comments