Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
azimov committed Jan 15, 2024
1 parent f6ddaf3 commit 8794d1a
Showing 1 changed file with 195 additions and 54 deletions.
249 changes: 195 additions & 54 deletions inst/analysis-specification-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,12 @@
"apiVersion": {
"type": "string"
},
"studyName": {"type" : "string"},
"studyDescription": {"type" : "string"},
"studyName": {
"type": "string"
},
"studyDescription": {
"type": "string"
},
"sharedResources": {
"type": "array",
"items": {
Expand Down Expand Up @@ -38,7 +42,9 @@
}
}
},
"required": ["self"]
"required": [
"self"
]
},
"cohortName": {
"type": "string"
Expand All @@ -47,19 +53,33 @@
"type": "integer"
}
},
"required": ["_links", "cohortName", "cohortDefinitionId"]
"required": [
"_links",
"cohortName",
"cohortDefinitionId"
]
},
{
"type": "object",
"properties": {
"cohortDefinitionId": {"type": "integer"},
"targetCohortDefinitionId": {"type": "integer"},
"subsetDefinitionId": {"type": "integer"},
"cohortName": {
"cohortDefinitionId": {
"type": "integer"
},
"targetCohortDefinitionId": {
"type": "integer"
},
"subsetDefinitionId": {
"type": "integer"
},
"cohortName": {
"type": "string"
}
},
"required": ["cohortDefinitionId", "targetCohortDefinitionId", "subsetDefinitionId"]
"required": [
"cohortDefinitionId",
"targetCohortDefinitionId",
"subsetDefinitionId"
]
}
]
}
Expand All @@ -72,72 +92,161 @@
"_links": {
"type": "object",
"properties": {
"self": {"type": "object", "properties": {"href": {"type": "string"}}}
"self": {
"type": "object",
"properties": {
"href": {
"type": "string"
}
}
}
},
"required": ["self"]
"required": [
"self"
]
},
"subsetDefinitionName": {
"type": "string"
},
"subsetDefinitionName": {"type": "string"},
"subsetDefinitionId": {"type": "integer"}
"subsetDefinitionId": {
"type": "integer"
}
},
"required": ["_links", "subsetDefinitionName", "subsetDefinitionId"]
"required": [
"_links",
"subsetDefinitionName",
"subsetDefinitionId"
]
}
}
},
"required": ["cohortDefinitions", "subsetDefinitions"]
"required": [
"cohortDefinitions",
"subsetDefinitions"
]
}
},
"required": ["cohortDefinitionSet"]
"required": [
"cohortDefinitionSet"
]
},
{
"type": "object",
"properties": {
"conceptSetDefinition": {
"type": "object",
"properties": {
"id": {"type": "integer"},
"conceptSetName": {"type": "string"},
"isNegativeControlConceptSet": {"type": "boolean"},
"id": {
"type": "integer"
},
"conceptSetName": {
"type": "string"
},
"isNegativeControlConceptSet": {
"type": "boolean"
},
"concepts": {
"type": "array",
"items": {
"type": "object",
"properties": {
"conceptId": {"type": "integer"},
"conceptName": {"type": "string"},
"standardConcept": {"type": "string", "enum": ["S", "NS"]},
"standardConceptCaption": {"type": "string"},
"invalidReason": {"type": "string"},
"invalidReasonCaption": {"type": "string"},
"conceptCode": {"type": "string"},
"domainId": {"type": "integer"},
"vocabularyId": {"type": "integer"},
"conceptClassId": {"type": "integer"},
"validStartDate": {"type": "string", "format": "date"},
"validEndDate": {"type": "string", "format": "date"},
"cohortDefinitionId": {"type": "integer"}
"conceptId": {
"type": "integer"
},
"conceptName": {
"type": "string"
},
"standardConcept": {
"type": "string",
"enum": [
"S",
"NS"
]
},
"standardConceptCaption": {
"type": "string"
},
"invalidReason": {
"type": "string"
},
"invalidReasonCaption": {
"type": "string"
},
"conceptCode": {
"type": "string"
},
"domainId": {
"type": "integer"
},
"vocabularyId": {
"type": "integer"
},
"conceptClassId": {
"type": "integer"
},
"validStartDate": {
"type": "string",
"format": "date"
},
"validEndDate": {
"type": "string",
"format": "date"
},
"cohortDefinitionId": {
"type": "integer"
}
},
"required": ["conceptId", "conceptName", "standardConcept", "standardConceptCaption", "invalidReason", "invalidReasonCaption", "conceptCode", "domainId", "vocabularyId", "conceptClassId", "validStartDate", "validEndDate"]
"required": [
"conceptId",
"conceptName",
"standardConcept",
"standardConceptCaption",
"invalidReason",
"invalidReasonCaption",
"conceptCode",
"domainId",
"vocabularyId",
"conceptClassId",
"validStartDate",
"validEndDate"
]
}
}
},
"required": ["id", "conceptSetName", "concepts"]
"required": [
"id",
"conceptSetName",
"concepts"
]
}
},
"required": ["conceptSetDefinition"]
"required": [
"conceptSetDefinition"
]
},
{
"type": "object",
"properties": {
"sharedResource": {
"type": "object",
"properties": {
"name": {"type": "string"},
"schemaRef": {"type": "string", "format": "uri"}
"name": {
"type": "string"
},
"schemaRef": {
"type": "string",
"format": "uri"
}
},
"required": ["name", "schemaRef"]
"required": [
"name",
"schemaRef"
]
}
},
"required": ["sharedResource"]
"required": [
"sharedResource"
]
}
]
}
Expand All @@ -148,23 +257,43 @@
"_links": {
"type": "object",
"properties": {
"self": {"type": "object", "properties": {"href": {"type": "string"}}}
"self": {
"type": "object",
"properties": {
"href": {
"type": "string"
}
}
}
},
"required": ["self"]
"required": [
"self"
]
}
},
"required": ["_links"]
"required": [
"_links"
]
},
"modules": {
"type": "array",
"items": {
"type": "object",
"properties": {
"module": {"type": "string"},
"version": {"type": "string"},
"schemaRef": {"type": "string", "format": "uri"},
"settings": {"$ref": "#"},
"renv" : {
"module": {
"type": "string"
},
"version": {
"type": "string"
},
"schemaRef": {
"type": "string",
"format": "uri"
},
"settings": {
"$ref": "#"
},
"renv": {
"type": "object",
"properties": {
"_links": {
Expand All @@ -179,13 +308,25 @@
}
}
},
"required": ["self"]
"required": [
"self"
]
}
}
},
"required": ["module", "version", "schemaRef", "settings"]
},
"required": [
"module",
"version",
"schemaRef",
"settings"
]
}
}
}
},
"required": ["apiVersion", "sharedResources", "renv", "modules"]
}
},
"required": [
"apiVersion",
"sharedResources",
"renv",
"modules"
]
}

0 comments on commit 8794d1a

Please sign in to comment.