cs-models 0.0.795__py3-none-any.whl → 0.0.796__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of cs-models might be problematic. Click here for more details.
- cs_models/resources/NCTParticipationCriteria/__init__.py +0 -0
- cs_models/resources/NCTParticipationCriteria/models.py +28 -0
- cs_models/resources/NCTParticipationCriteria/schemas.py +14 -0
- {cs_models-0.0.795.dist-info → cs_models-0.0.796.dist-info}/METADATA +1 -1
- {cs_models-0.0.795.dist-info → cs_models-0.0.796.dist-info}/RECORD +7 -4
- {cs_models-0.0.795.dist-info → cs_models-0.0.796.dist-info}/WHEEL +0 -0
- {cs_models-0.0.795.dist-info → cs_models-0.0.796.dist-info}/top_level.txt +0 -0
|
File without changes
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
from sqlalchemy import (
|
|
2
|
+
Integer,
|
|
3
|
+
Column,
|
|
4
|
+
DateTime,
|
|
5
|
+
ForeignKey,
|
|
6
|
+
Text,
|
|
7
|
+
)
|
|
8
|
+
from datetime import datetime
|
|
9
|
+
from ...database import Base
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class NCTParticipationCriteriaModel(Base):
|
|
13
|
+
__tablename__ = "nct_participation_criteria"
|
|
14
|
+
|
|
15
|
+
id = Column(Integer, primary_key=True)
|
|
16
|
+
nct_study_id = Column(
|
|
17
|
+
Integer,
|
|
18
|
+
ForeignKey('nct_study.id'),
|
|
19
|
+
nullable=False,
|
|
20
|
+
)
|
|
21
|
+
participation_criteria = Column(Text)
|
|
22
|
+
updated_at = Column(
|
|
23
|
+
DateTime,
|
|
24
|
+
nullable=False,
|
|
25
|
+
# https://stackoverflow.com/questions/58776476/why-doesnt-freezegun-work-with-sqlalchemy-default-values
|
|
26
|
+
default=lambda: datetime.utcnow(),
|
|
27
|
+
onupdate=lambda: datetime.utcnow(),
|
|
28
|
+
)
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
from marshmallow import (
|
|
2
|
+
Schema,
|
|
3
|
+
fields,
|
|
4
|
+
validate,
|
|
5
|
+
)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class NCTParticipationCriteriaResourceSchema(Schema):
|
|
9
|
+
not_blank = validate.Length(min=1, error="Field cannot be blank")
|
|
10
|
+
|
|
11
|
+
id = fields.Integer(dump_only=True)
|
|
12
|
+
nct_study_id = fields.Integer(required=True)
|
|
13
|
+
participation_criteria = fields.String(allow_none=True)
|
|
14
|
+
updated_at = fields.DateTime(dump_only=True)
|
|
@@ -635,6 +635,9 @@ cs_models/resources/NCTFacilities/schemas.py,sha256=eM1RY_giao1oFlmFeG-h5iZRvCja
|
|
|
635
635
|
cs_models/resources/NCTNewswire/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
636
636
|
cs_models/resources/NCTNewswire/models.py,sha256=FSy__3OQ7JliFxn428ac3MBIBdGBX-ATzOL57cmrPb4,865
|
|
637
637
|
cs_models/resources/NCTNewswire/schemas.py,sha256=vylEuOmU0C6NbgIc96a_jzAtajnNDH1n88u9EioIR6E,455
|
|
638
|
+
cs_models/resources/NCTParticipationCriteria/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
639
|
+
cs_models/resources/NCTParticipationCriteria/models.py,sha256=bVnr4JLHbypuMF3vx2vqsXVjl2gTWWwvInibwIdiHJY,713
|
|
640
|
+
cs_models/resources/NCTParticipationCriteria/schemas.py,sha256=3L2eceRf7gnfhEHdCGv7KSHwtUwXcxYQyCAOmiXnoss,391
|
|
638
641
|
cs_models/resources/NCTPubmed/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
639
642
|
cs_models/resources/NCTPubmed/models.py,sha256=Vf29tMl_0HZJZaq-15t8p1gl0ZMNh1eaViAOEHSjgiU,859
|
|
640
643
|
cs_models/resources/NCTPubmed/schemas.py,sha256=60mAyzxpsz8xLvkOm9RlVdYkiHLcVyRTB1i3Jb-wC8o,455
|
|
@@ -1288,7 +1291,7 @@ cs_models/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
1288
1291
|
cs_models/utils/alchemy.py,sha256=fhINGFn41owJ2DLXQKXAAtLqeZ1BRzD_qU0wPK_bsGQ,1598
|
|
1289
1292
|
cs_models/utils/utils.py,sha256=BzCDk3u1np7DoJQqCZIJN4f80JNHvJoWO4qEFgolN-8,4474
|
|
1290
1293
|
cs_models/utils/profiling/__init__.py,sha256=N-73vb0M92C975fxgXyBCBjCPELl8Oh21ZY_-tzDnns,569
|
|
1291
|
-
cs_models-0.0.
|
|
1292
|
-
cs_models-0.0.
|
|
1293
|
-
cs_models-0.0.
|
|
1294
|
-
cs_models-0.0.
|
|
1294
|
+
cs_models-0.0.796.dist-info/METADATA,sha256=AP40bUVhwzOFmHJm-VKQxc-khCnPGI-u6QjnZMdhK0w,751
|
|
1295
|
+
cs_models-0.0.796.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
|
1296
|
+
cs_models-0.0.796.dist-info/top_level.txt,sha256=M7CA8Nh5t0vRManQ9gHfphhO16uhMqIbfaxr1jPDg18,10
|
|
1297
|
+
cs_models-0.0.796.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|