-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #389 from vselvarajijay/go-live-version
Go live version
- Loading branch information
Showing
5 changed files
with
187 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,22 @@ | ||
import os | ||
import json | ||
import logging | ||
import yaml | ||
|
||
import os, logging, yaml | ||
from akello.services import BaseService | ||
from akello.db.models import Measurement | ||
|
||
|
||
logger = logging.getLogger('mangum') | ||
|
||
|
||
class ScreenerService(BaseService): | ||
|
||
|
||
|
||
@staticmethod | ||
#def get_measurements(): | ||
def get_screeners(): | ||
measurement_list = [] | ||
measurements = os.listdir('akello/screeners/measurements') | ||
measurements = os.listdir('akello/screeners/measurements') | ||
for measurement in measurements: | ||
|
||
if measurement.endswith('.yaml'): | ||
with open(f'akello/screeners/measurements/{measurement}') as f: | ||
|
||
try: | ||
try: | ||
mobj = Measurement(**yaml.safe_load(f)) | ||
measurement_list.append(mobj) | ||
measurement_list.append(mobj) | ||
except yaml.YAMLError as exc: | ||
print(exc) | ||
|
||
print(exc) | ||
return measurement_list | ||
|
||
@staticmethod | ||
def get_screener_by_id(screener_id): | ||
pass | ||
|
||
def generate_questionnaire_response(self, questionnaire_response): | ||
# Example: https://build.fhir.org/ig/HL7/sdc/QuestionnaireResponse-questionnaireresponse-sdc-profile-example-PHQ9.json.html | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.