Skip to content

Commit 148c83a

Browse files
authored
Update to schemas 0.3.1 (#132)
* Update codebase based on schemas version 0.3.1 * Update npm dependencies
1 parent b058a81 commit 148c83a

18 files changed

Lines changed: 1081 additions & 1862 deletions

openapi.yaml

Lines changed: 0 additions & 1380 deletions
This file was deleted.

package-lock.json

Lines changed: 1050 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"name": "data-node",
3-
"version": "0.2.1",
3+
"version": "0.3.1",
44
"license": "Apache-2.0",
55
"devDependencies": {
6-
"@openapitools/openapi-generator-cli": "^1.0.18-4.3.1"
6+
"@openapitools/openapi-generator-cli": "2.1.18"
77
},
88
"scripts": {
99
"generate:server": "openapi-generator generate -g python-flask -o server -i $npm_config_spec"

server/.openapi-generator-ignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ setup.py
3333
Dockerfile
3434
openapi_server/__main__.py
3535
openapi_server/controllers/security_controller_.py
36+
openapi_server/test/__init__.py
3637
requirements.txt
3738
test-requirements.txt
3839
tox.ini

server/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ RUN pip install --no-cache-dir \
2626

2727
EXPOSE 8080
2828

29-
HEALTHCHECK --interval=5s --timeout=3s --start-period=5s CMD curl --fail http://localhost:8080/api/v1/healthCheck
29+
HEALTHCHECK --interval=60s --timeout=3s --start-period=5s CMD curl --fail http://localhost:8080/api/v1/healthCheck
3030

3131
ENTRYPOINT ["/docker-entrypoint.sh"]
3232

server/openapi_server/controllers/health_check_controller.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,4 @@ def get_health_check(): # noqa: E501
99
1010
:rtype: HealthCheck
1111
"""
12-
res = HealthCheck(status="pass")
13-
return res, 200
12+
return HealthCheck(status="pass"), 200

server/openapi_server/controllers/service_controller.py

Lines changed: 0 additions & 22 deletions
This file was deleted.

server/openapi_server/models/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
from openapi_server.models.resource_source import ResourceSource
3737
from openapi_server.models.response_page_metadata import ResponsePageMetadata
3838
from openapi_server.models.response_page_metadata_links import ResponsePageMetadataLinks
39-
from openapi_server.models.service import Service
4039
from openapi_server.models.text_annotation import TextAnnotation
4140
from openapi_server.models.text_date_annotation import TextDateAnnotation
4241
from openapi_server.models.text_date_annotation_all_of import TextDateAnnotationAllOf

server/openapi_server/models/note.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def from_dict(cls, dikt) -> 'Note':
6161
def id(self):
6262
"""Gets the id of this Note.
6363
64-
The ID of the clinical note # noqa: E501
64+
ID of the clinical note # noqa: E501
6565
6666
:return: The id of this Note.
6767
:rtype: str
@@ -72,7 +72,7 @@ def id(self):
7272
def id(self, id):
7373
"""Sets the id of this Note.
7474
75-
The ID of the clinical note # noqa: E501
75+
ID of the clinical note # noqa: E501
7676
7777
:param id: The id of this Note.
7878
:type id: str
@@ -134,7 +134,7 @@ def note_type(self, note_type):
134134
def patient_id(self):
135135
"""Gets the patient_id of this Note.
136136
137-
The ID of the FHIR patient # noqa: E501
137+
ID of the FHIR patient # noqa: E501
138138
139139
:return: The patient_id of this Note.
140140
:rtype: str
@@ -145,7 +145,7 @@ def patient_id(self):
145145
def patient_id(self, patient_id):
146146
"""Sets the patient_id of this Note.
147147
148-
The ID of the FHIR patient # noqa: E501
148+
ID of the FHIR patient # noqa: E501
149149
150150
:param patient_id: The patient_id of this Note.
151151
:type patient_id: str

server/openapi_server/models/note_create_request.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def note_type(self, note_type):
106106
def patient_id(self):
107107
"""Gets the patient_id of this NoteCreateRequest.
108108
109-
The ID of the FHIR patient # noqa: E501
109+
ID of the FHIR patient # noqa: E501
110110
111111
:return: The patient_id of this NoteCreateRequest.
112112
:rtype: str
@@ -117,7 +117,7 @@ def patient_id(self):
117117
def patient_id(self, patient_id):
118118
"""Sets the patient_id of this NoteCreateRequest.
119119
120-
The ID of the FHIR patient # noqa: E501
120+
ID of the FHIR patient # noqa: E501
121121
122122
:param patient_id: The patient_id of this NoteCreateRequest.
123123
:type patient_id: str

0 commit comments

Comments
 (0)