File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed
Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 1+ # We use V1 RC4 for implementing the train.
2+ # Also, we use the -fhir image such that the fhirclient and SPAQRLWrapper modules are available
13FROM personalhealthtrain/train-api-python:1.0rc4-fhir
24LABEL maintainer="luk.zim91@gmail.com"
35
6+ # Copy all required source code files for the train inside the image
47COPY entrypoint.py /opt/entrypoint.py
58COPY sparql.py /opt/sparql.py
69COPY fhir.py /opt/fhir.py
Original file line number Diff line number Diff line change 33import sparql
44import os
55
6+ # The PHT API dependencies
67from pht .train import SimpleTrain
78from pht .internal import StationRuntimeInfo , ConjunctionBuilder
89from pht .train .response import RunResponse
@@ -26,6 +27,10 @@ def __init__(self):
2627 self .output_file = '/opt/train/output.txt'
2728
2829 def requirements (self ) -> ConjunctionBuilder :
30+ # Declare the requirements of this train. The station needs to provide:
31+ # * The endpoint type (either 'FHIR' or 'SPARQL'
32+ # * The endpoint url
33+ # * The endpoint token
2934 return Require (self .endpoint_type ) & Require (self .endpoint_url ) & Require (self .endpoint_token )
3035
3136 def model_summary (self ) -> str :
Original file line number Diff line number Diff line change 11from fhirclient import client
2- from fhirclient .models .patient import Patient
3- from fhirclient .models import fhirsearch as S
42from datetime import datetime
53from datetime import date
6- from fhirclient .models import fhirsearch
74
85
96def perform_in (srch_str , server ,apiBase ):
You can’t perform that action at this time.
0 commit comments