Skip to content

Commit

Permalink
Added new metadata blocks (for migration)
Browse files Browse the repository at this point in the history
See #1452 and #1607
  • Loading branch information
posixeleni committed Mar 7, 2015
1 parent eb101e8 commit 4110b4d
Show file tree
Hide file tree
Showing 4 changed files with 166 additions and 1 deletion.
10 changes: 10 additions & 0 deletions scripts/api/data/metadatablocks/customCHIA.tsv
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#metadataBlock name displayName
customCHIA CHIA Metadata
#datasetField name title description watermark fieldType displayOrder displayFormat advancedSearchField allowControlledVocabulary allowmultiples facetable showabovefold required parent metadatablock_id
Source Source Source - This describes the source of the data. Is it from the Bureau of Labor and Statistics? Is it data from the United Nations? text 0 TRUE FALSE FALSE TRUE FALSE FALSE customCHIA
DatesAdditionalInformation Dates - Additional Information Dates - Additional Information - Note any additional information about dates or time periods in the dataset including intervals (annual, decennial, centennial, etc.) Also note the column(s) in the dataset where dates and other temporal information can be found. text 1 TRUE FALSE FALSE FALSE FALSE FALSE customCHIA
Variables Variables Variables - Define the variables in this dataset. Please note the column in the dataset where variable information can be found. textbox 2 TRUE FALSE FALSE FALSE FALSE FALSE customCHIA
ClassificationSchema Classification Schema Classification Schema - If there is a classification scheme in this dataset, please describe it. For example, M_20_24 should be read as Males, aged 20-24. textbox 3 TRUE FALSE FALSE TRUE FALSE FALSE customCHIA
Provenance Provenance Provenance - The provenance of the datasets is the record of ownership and will be used as a guide to the authenticity or quality of the data. For example, the Provenance statement might be, "This dataset was created from data collected by David Ruvolo during a data collection trip to Spain in 1992. Since that time, the data has not been altered other than to migrate it to more current formats." text 4 TRUE FALSE FALSE FALSE FALSE FALSE customCHIA
RightsAvailability Rights/Availability Rights/Availability - Do you have the rights to share this data? text 5 TRUE FALSE FALSE FALSE FALSE FALSE customCHIA
#controlledVocabulary DatasetField Value identifier displayOrder
46 changes: 46 additions & 0 deletions scripts/api/data/metadatablocks/customDigaai.tsv
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
#metadataBlock name displayName
customDigaai Digaai Metadata
#datasetField name title description watermark fieldType displayOrder displayFormat advancedSearchField allowControlledVocabulary allowmultiples facetable showabovefold required parent metadatablock_id
Ttulo Título Título do jornal ou revista. text 0 TRUE TRUE TRUE TRUE FALSE FALSE customDigaai
Nmero Número Número do jornal ou revista. text 1 TRUE FALSE FALSE TRUE FALSE FALSE customDigaai
DatadePublicao Data de Publicação Entrar dia/mes/ano. dia/mes/ano text 2 TRUE FALSE FALSE TRUE FALSE FALSE customDigaai
LocaldePublicao Local de Publicação Local de Publicação. text 3 TRUE FALSE FALSE TRUE FALSE FALSE customDigaai
Proprietrio Proprietário Proprietário text 4 TRUE FALSE FALSE TRUE FALSE FALSE customDigaai
#controlledVocabulary DatasetField Value identifier displayOrder
Ttulo Achei USA 0
Ttulo Acontece Magazine 1
Ttulo A Notícia 2
Ttulo Brasil Best 3
Ttulo Brasileiros & Brasileiras 4
Ttulo Brasil USA 5
Ttulo Brazil Explore 6
Ttulo Brazilian Press 7
Ttulo Brazilian Voice 8
Ttulo Brazil News 9
Ttulo Brazuca 10
Ttulo Cia Brasil 11
Ttulo Comunidade News 12
Ttulo Diário do Brasil 13
Ttulo FaceBrasil 14
Ttulo Green and Yellow News 15
Ttulo Jornal dos Sports 16
Ttulo Jornal Moderno 17
Ttulo Metropolitan 18
Ttulo National 19
Ttulo Negócio Fechado 20
Ttulo Nossa Gente 21
Ttulo Nossa Terra 22
Ttulo O Brasileirinho 23
Ttulo O Imigrante Cristão 24
Ttulo O Jornal Brasileiro 25
Ttulo O Popular 26
Ttulo Revista Linha Aberta 27
Ttulo Revista MASSA 28
Ttulo Revista Tititi 29
Ttulo Sucesso USA 30
Ttulo Ta na Mão 31
Ttulo TC Brazil 32
Ttulo Texas Magazine 33
Ttulo The Brazilian Journal 34
Ttulo Today Magazine 35
Ttulo Viver Magazine 36
106 changes: 106 additions & 0 deletions scripts/api/data/metadatablocks/customPSI.tsv
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
#metadataBlock name displayName
customPSI PSI Metadata
#datasetField name title description watermark fieldType displayOrder displayFormat advancedSearchField allowControlledVocabulary allowmultiples facetable showabovefold required parent metadatablock_id
psiBehavior Behavior Behavior text 0 TRUE TRUE TRUE TRUE FALSE FALSE customPSI
psiDonor Donor Donor text 1 TRUE TRUE TRUE TRUE FALSE FALSE customPSI
psiHealthArea Health Area Health Area text 2 TRUE TRUE TRUE TRUE FALSE FALSE customPSI
psiIntervention Intervention Intervention text 3 TRUE TRUE TRUE TRUE FALSE FALSE customPSI
psiPopulation Population Population text 4 TRUE TRUE TRUE TRUE FALSE FALSE customPSI
psiProductsServices Products/Services Products/Services text 5 TRUE TRUE TRUE TRUE FALSE FALSE customPSI
psiStudyDesignElement Study Design Element Study Design Element text 6 TRUE TRUE TRUE TRUE FALSE FALSE customPSI
psiStudyType Study Type Study Type text 7 TRUE TRUE TRUE TRUE FALSE FALSE customPSI
#controlledVocabulary DatasetField Value identifier displayOrder
psiBehavior Abstinence 0
psiBehavior Birth spacing 1
psiBehavior Cervical cancer screening 2
psiBehavior Condom use 3
psiBehavior FGM 4
psiBehavior HIV risk behaviors 5
psiBehavior HIV/STI testing 6
psiBehavior LLIN use 7
psiBehavior Male circumcision 8
psiBehavior Modern contraceptive use 9
psiBehavior ORS use 10
psiBehavior Partner reduction 11
psiBehavior Referral uptake 12
psiBehavior Treatment adherence 13
psiBehavior Water treatment 14
psiDonor CDC 0
psiDonor DFID 1
psiDonor Dutch 2
psiDonor Gates Foundation 3
psiDonor Global Fund 4
psiDonor KfW 5
psiDonor LAD 6
psiDonor Other 7
psiDonor PEPFAR 8
psiDonor UNFPA 9
psiDonor USAID 10
psiHealthArea Diarrhea 0
psiHealthArea GBV 1
psiHealthArea HIV 2
psiHealthArea ICM 3
psiHealthArea Malaria 4
psiHealthArea NCDs 5
psiHealthArea Nutrition 6
psiHealthArea Pneumonia 7
psiHealthArea Reproductive health 8
psiHealthArea TB 9
psiIntervention BCC 0
psiIntervention IPC 1
psiIntervention Medical detailing 2
psiIntervention mHealth 3
psiIntervention Provider training 4
psiIntervention Social franchising 5
psiPopulation Caregivers 0
psiPopulation Couples 1
psiPopulation FSW 2
psiPopulation General population 3
psiPopulation IDUs 4
psiPopulation MARPs 5
psiPopulation Men 6
psiPopulation MSM 7
psiPopulation PLHIV 8
psiPopulation Providers 9
psiPopulation Truck drivers 10
psiPopulation Women 11
psiPopulation WRA 12
psiPopulation Youth 13
psiProductsServices ACT 0
psiProductsServices ANC 1
psiProductsServices Antibiotics 2
psiProductsServices ART 3
psiProductsServices Clean delivery kit 4
psiProductsServices Condoms 5
psiProductsServices Household water treatment 6
psiProductsServices HTC 7
psiProductsServices LLIN 8
psiProductsServices Long-term Methods 9
psiProductsServices Medicated Abortion 10
psiProductsServices Misoprostol 11
psiProductsServices Multivitamin 12
psiProductsServices Needle and syringe 13
psiProductsServices Nevirapine 14
psiProductsServices ORS 15
psiProductsServices PMTCT 16
psiProductsServices Short-term methods 17
psiProductsServices STI kit 18
psiProductsServices TB DOTS 19
psiProductsServices VMC 20
psiProductsServices Zinc 21
psiStudyDesignElement CEM 0
psiStudyDesignElement Client exit interview 1
psiStudyDesignElement Control group 2
psiStudyDesignElement Cross-sectional 3
psiStudyDesignElement Focus group 4
psiStudyDesignElement In-depth interview 5
psiStudyDesignElement Longitudinal 6
psiStudyDesignElement LQAS 7
psiStudyDesignElement Mystery client 8
psiStudyDesignElement Pretesting 9
psiStudyDesignElement TRaC 10
psiStudyType MAP 0
psiStudyType Mixed Methods 1
psiStudyType Qualitative 2
psiStudyType Quantitative 3
psiStudyType Retail audit 4
5 changes: 4 additions & 1 deletion scripts/api/setup-datasetfields.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,7 @@ curl http://localhost:8080/api/datasetfield/load -X POST --data-binary @data/met
curl http://localhost:8080/api/datasetfield/load -X POST --data-binary @data/metadatablocks/customMRA.tsv -H "Content-type: text/tab-separated-values"
curl http://localhost:8080/api/datasetfield/load -X POST --data-binary @data/metadatablocks/customGSD.tsv -H "Content-type: text/tab-separated-values"
curl http://localhost:8080/api/datasetfield/load -X POST --data-binary @data/metadatablocks/customARCS.tsv -H "Content-type: text/tab-separated-values"
curl http://localhost:8080/api/datasetfield/load -X POST --data-binary @data/metadatablocks/customPSRI.tsv -H "Content-type: text/tab-separated-values"
curl http://localhost:8080/api/datasetfield/load -X POST --data-binary @data/metadatablocks/customPSRI.tsv -H "Content-type: text/tab-separated-values"
curl http://localhost:8080/api/datasetfield/load -X POST --data-binary @data/metadatablocks/customPSI.tsv -H "Content-type: text/tab-separated-values"
curl http://localhost:8080/api/datasetfield/load -X POST --data-binary @data/metadatablocks/customCHIA.tsv -H "Content-type: text/tab-separated-values"
curl http://localhost:8080/api/datasetfield/load -X POST --data-binary @data/metadatablocks/customDigaai.tsv -H "Content-type: text/tab-separated-values"

0 comments on commit 4110b4d

Please sign in to comment.