Skip to content

Commit

Permalink
Relative link
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Davies committed Jun 26, 2018
1 parent 0384cfe commit 7c0596a
Show file tree
Hide file tree
Showing 2 changed files with 82 additions and 32 deletions.
7 changes: 7 additions & 0 deletions docs/example/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,11 @@ Attributes
.. jsonschema:: ../../schema/measures/pcWomenCompletingTraining2.json
:include: attributes

JSON Representation
-------------------

.. jsoninclude:: ../../schema/measures/pcWomenCompletingTraining2.json
:jsonpointer: /example

Tabular representation
-----------------------
107 changes: 75 additions & 32 deletions schema/measures/pcWomenCompletingTraining2.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,41 +19,45 @@
"max": 1,
"min": 0
},
"numerator":{
"title":"Numerator",
"description":"Numerator",
"type":"object",
"properties":{
"code":{
"title":"nPWT",
"description":"The code for this indicator is nPWT",
"type":"string",
"enum":["nPWT"]
"numerator": {
"title": "Numerator",
"description": "Numerator",
"type": "object",
"properties": {
"code": {
"title": "nPWT",
"description": "The code for this indicator is nPWT",
"type": "string",
"enum": [
"nPWT"
]
},
"value":{
"title":"Training: Female participants",
"description":"Number of training participants whose sex is female.",
"type":"number",
"min":0
"value": {
"title": "Training: Female participants",
"description": "Number of training participants whose sex is female.",
"type": "number",
"min": 0
}
}
},
"denominator":{
"title":"Denominator",
"description":"Denominator",
"type":"object",
"properties":{
"code":{
"title":"nTPART",
"description":"The code for this indicator is nTPART",
"type":"string",
"enum":["nTPART"]
"denominator": {
"title": "Denominator",
"description": "Denominator",
"type": "object",
"properties": {
"code": {
"title": "nTPART",
"description": "The code for this indicator is nTPART",
"type": "string",
"enum": [
"nTPART"
]
},
"value":{
"title":"Training: total participants",
"description":"Total number of people participating in training.",
"type":"number",
"min":0
"value": {
"title": "Training: total participants",
"description": "Total number of people participating in training.",
"type": "number",
"min": 0
}
}
},
Expand Down Expand Up @@ -172,7 +176,10 @@
}
}
},
"required":["periodStart","periodEnd"]
"required": [
"periodStart",
"periodEnd"
]
},
"attributes": {
"type": "object",
Expand All @@ -197,5 +204,41 @@
}
}
},
"required":["code","value"]
"required": [
"code",
"value"
],
"example": {
"metrics": [
{
"code": "pcWCT",
"value": 0.3,
"numerator": {
"code": "nPWT",
"value": 3
},
"denominator": {
"code": "nTPART",
"value": 10
},
"dimensions": {
"periodStartDate": "2017-01-01",
"periodEndDate": "2018-01-01",
"geographicCoverage": {
"description": "United Kingdom",
"gazeteer": {
"scheme": "geonames",
"identifiers": [
"2635167"
]
}
}
},
"attributes": {
"source": "Survey",
"sourceType": "estimate"
}
}
]
}
}

0 comments on commit 7c0596a

Please sign in to comment.