emrex-eu / elmo-schemas

ELMO Schemas
European Union Public License 1.2
14 stars 15 forks source link

Introduce Duration - element #91

Open geirmv opened 3 months ago

geirmv commented 3 months ago

Meeting 28 June (Tor, Mirko, Jan-Joost, Geir)

With the introduction of OOTS and support for education processes within Single Digital Gateway, there is a need to provide duration of studies to the ELMO schema.

We propose to add a new element LearnerOpportunityInstance.duration, with a type of duration - restricted to days, weeks, months, years.

      <xs:element name="duration" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
           This describes the normal duration in time for an education.

            Here, issuers of ELMO can describe types of duration. The schema provides a predefined list of duration
          </xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:token">
            <xs:enumeration value="Day">
              <xs:annotation>
                <xs:documentation>
                  Duration in number of days
                </xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="Week">
              <xs:annotation>
                <xs:documentation>
                  Duration in number of weeks
                </xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="Month">
              <xs:annotation>
                <xs:documentation>
                  Duration in number of months
                </xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="Year">
              <xs:annotation>
                <xs:documentation>
                  Duration in number of years
                </xs:documentation>
              </xs:annotation>
            </xs:enumeration>

          </xs:restriction>
        </xs:simpleType>
      </xs:element>