#
# RIB configuration file for NHSE variant of the RIG BIDM/ACF
#
# format:
#  BIDM-field-name required/optional  single/multiple   datatype #comments  
#                              

<RigObject>
  <attributes>
    Name                   required    single     string
  </attributes>
  <relationships>
    RecordMaintainedBy.Organization  required  single
  </relationships>
</RigObject>

<Asset extends RigObject>
  <attributes>
    Abstract                required  single    text
    Cost                    optional  single    text
    DateOfInformation       required  single    date
    DistributionStatement   optional  single    text
    Domain                  required  multiple  string
    Keyword                 optional  single    string
    Language                optional  single    string
    Restrictions            optional  single    text
    TargetEnvironment       required  single    text
    TitleLine               required  single    string  #one-line description
    Version                 optional  single    string
    VersionDate             optional  single    date
    Webpage                 required  single    string  #URL for asset home page
  </attributes>
  <relationships>
    AwardedWith.Certificate   optional  multiple
    ContactIs.Organization    required  multiple
    IsComposedOf.Asset        optional  multiple
    IsLocatedIn.Library       optional  multiple
    IsMadeOf.Element          optional  multiple
    WasCreatedBy.Organization optional  multiple
  </relationships>
</Asset>

<Certificate extends RigObject>
  <attributes>
    CertificateDate      required  single  date
    CertificateLevel     required  single  string
    CertificateStatus    optional  single  string
    Webpage              optional  single  string #URL for NHSE review abstract
  </attributes>
  <relationships>
    CertifiedBy.Organization    optional  multiple
    DefinedBy.CertificationPolicy   required  single
    SupportedBy.CertificationArtifact   optional  multiple
  </relationships>
</Certificate>

<CertificationArtifact extends Element>
  <attributes>
  </attributes>
  <relationships>
  </relationships>
</CertificationArtifact>

<CertificationPolicy extends RigObject>
  <attributes>
    PolicyEffectiveDate    optional  single  date
    PolicyReference        optional  single  string
    Webpage                optional  single  string #URL for policy description
  </attributes>
  <relationships>
  </relationships>
</CertificationPolicy>

<Element extends RigObject>
  <attributes>
    ElementType        optional  multiple string
    UniqueID           required  single  string  #URL for file
  </attributes>
  <relationships>
  </relationships>
</Element>

<Library extends RigObject>
  <attributes>
    Webpage            optional  single string #URL for library home page
  </attributes>
  <relationships>
    ContactIs.Organization          required  multiple
    HasDefault.CertificationPolciy  optional  single
    IsComposedOf.Library            optional  multiple
    References.CertificationPolicy  optional  multiple
  </relationships>
</Library>

<Organization extends RigObject>
  <attributes>
    Address           optional  single    string
    Email             required  multiple  string
    Fax               optional  multiple  string
    Telephone         optional  multiple  string
    Webpage           optional  single    string  #URL for home page
  </attributes>
  <relationships>
  </relationships>
</Organization>
