CLOSER-Cohorts / Extract2DDI

Tool to extract DDI metadata from SPSS and Stata
Other
1 stars 0 forks source link

Add software tagging for SPSS and Stata 3.3 #41

Open spuddybike opened 5 months ago

spuddybike commented 5 months ago
  <GrossFileStructure isUniversallyUnique="true">
    <r:URN>urn:ddi:uk.genscotland:e3fc49ff-d893-434e-a4c6-24bc6b7c3934:1</r:URN>
    <r:Agency>uk.genscotland</r:Agency>
    <r:ID>e3fc49ff-d893-434e-a4c6-24bc6b7c3934</r:ID>
    <r:Version>1</r:Version>
    <CaseQuantity>5</CaseQuantity>
  </GrossFileStructure>

Add CreationSoftware element as below

spuddybike commented 5 months ago
  <GrossFileStructure isUniversallyUnique="true">
    <r:URN>urn:ddi:uk.genscotland:e3fc49ff-d893-434e-a4c6-24bc6b7c3934:1</r:URN>
    <r:Agency>uk.genscotland</r:Agency>
    <r:ID>e3fc49ff-d893-434e-a4c6-24bc6b7c3934</r:ID>
    <r:Version>1</r:Version>
    <CaseQuantity>5</CaseQuantity>

    <CreationSoftware>
      <r:SoftwareName>
        <r:String xml:lang="en-GB">STATA</r:String> or
        <r:String xml:lang="en-GB">SPSS</r:String>
      </r:SoftwareName>
      <r:Description>
        <r:Content>Stata XXX </r:Content>
        <r:Content>IBM SPSS STATISTICS 64-bit Macintosh 28.0.0.0</r:Content>
      </r:Description>
    </CreationSoftware>

  </GrossFileStructure>

Where XXX is mapped from the format version to the 'nice name'

  121     Stata 18 
  120     Stata 18 
  119     Stata 15 
  118     Stata 14
  117     Stata 13 
  115     Stata 12
  114     Stata 10
  113     Stata  8