<?xml version="1.0" encoding="UTF-8"?>
<!-- Draft of E-ARK eHealth METS Profile 1.0 -->
<METS_Profile
    xmlns="http://www.loc.gov/METS_Profile/v2"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:mets="http://www.loc.gov/METS/"
    xmlns:csip="https://DILCIS.eu/XML/METS/CSIPExtensionMETS"
    xmlns:sip="https://DILCIS.eu/XML/METS/SIPExtensionMETS"
    xmlns:xlink="http://www.w3.org/1999/xlink"
    xsi:schemaLocation="http://www.loc.gov/METS_Profile/v2 http://www.loc.gov/standards/mets/profile_docs/mets.profile.v2-0.xsd http://www.loc.gov/METS/ http://www.loc.gov/standards/mets/mets.xsd http://www.w3.org/1999/xlink http://www.loc.gov/standards/mets/xlink.xsd"
    STATUS="provisional"
    REGISTRATION="unregistered"
    ID="eHealth1ROOTV0.0.1">
    <URI LOCTYPE="URL" ASSIGNEDBY="local">https://earkehealth1.dilcis.eu/profile/E-ARK-eHealth1-ROOT.xml</URI>
    <title>E-ARK eHealth1 root METS Profile 1.0</title>
    <abstract>This is the profile for an root METS following E-ARK eHealth1. Its an extension of the E-ARK SIP profile which in its turn extends the CS IP profile.</abstract>
    <date>2020-07-24T12:00:00</date>
    <contact>
        <institution>DILCIS Board</institution>
        <address>http://dilcis.eu/</address>
        <email>info@dilcis.eu</email>
    </contact>
    <related_profile RELATIONSHIP="Extends" URI="https://earksip.dilcis.eu/profile/E-ARK-SIP.xml">E-ARK SIP METS Profile 2.0.4</related_profile>
    <profile_context>
        <resource_model>
          <head>E-ARK eHealth1 ROOT profile</head>
            <p xmlns="http://www.w3.org/1999/xhtml">This profile together with the E-ARK CITS eHealth1 document describes the root METS document for an IP conforming to the E-ARK CITS eHealth1.</p>
        </resource_model>
    </profile_context>
    <external_schema>
        <name>E-ARK SIP METS Extension</name>
            <URL>https://earksip.dilcis.eu/schema/DILCISExtensionSIPMETS.xsd</URL>
            <context>XML-schema for the attributes added by SIP</context>
            <note>
                <p xmlns="http://www.w3.org/1999/xhtml">An extension schema with the added attributes for use in this profile.</p>
                <p xmlns="http://www.w3.org/1999/xhtml">The schema is used with a namespace prefix of sip.</p>
            </note>
    </external_schema>
    <external_schema>
        <name>E-ARK CSIP METS Extension</name>
        <URL>http://earkcsip.dilcis.eu/schema/DILCISExtensionMETS.xsd</URL>
        <context>XML-schema for the attributes added by CSIP</context>
        <note>
            <p xmlns="http://www.w3.org/1999/xhtml">An extension schema with the added attributes for use in this profile.</p>
            <p xmlns="http://www.w3.org/1999/xhtml">The schema is identified using the namespace prefix csip.</p>
        </note>
    </external_schema>
    <description_rules>
        <p xmlns="http://www.w3.org/1999/xhtml">The filepath must be decoded consistently throughout all file references within the information package.</p>
    </description_rules>
    <controlled_vocabularies>
        <vocabulary ID="VocabularyaltrecordIDTYPE">
            <name>Alternative record ID's</name>
            <maintenance_agency>DILCIS Board</maintenance_agency>
            <URI>http://earksip.dilcis.eu/schema/SIPVocabularyRecordIDType.xml</URI>
            <context>Used in `altrecordID/@TYPE`</context>
            <description>
                <p xmlns="http://www.w3.org/1999/xhtml">Describes the type of the alternative record ID.</p>
            </description>
        </vocabulary>
        <vocabulary ID="VocabularyNoteType">
            <name>Note type</name>
            <maintenance_agency>DILCIS Board</maintenance_agency>
            <URI>http://earkcsip.dilcis.eu/schema/CSIPVocabularyNoteType.xml</URI>
            <context>Used in `@csip:NOTETYPE`</context>
            <description>
                <p xmlns="http://www.w3.org/1999/xhtml">Describes the type of a note for an agent.</p>
            </description>
        </vocabulary>
        <vocabulary ID="VocabularyContentInformationTypeSpecification">
            <!-- Karin: Value eHealth1 is needed to be added -->
            <name>Content information type specification</name>
            <maintenance_agency>DILCIS Board</maintenance_agency>
            <URI>http://earkcsip.dilcis.eu/schema/CSIPVocabularyContentInformationType.xml</URI>
            <context>Values for `@csip:CONTENTINFORMATIONTYPE`</context>
            <description>
                <p xmlns="http://www.w3.org/1999/xhtml">Lists the names of specific E-ARK content information type specifications supported or maintained in this METS profile.</p>
            </description>
        </vocabulary>
        <vocabulary ID="VocabularyContentCategory">
            <name>Content Category</name>
            <maintenance_agency>DILCIS Board</maintenance_agency>
            <URI>http://earkcsip.dilcis.eu/schema/CSIPVocabularyContentCategory.xml</URI>
            <context>Values for `mets/@type`</context>
            <description>
                <p xmlns="http://www.w3.org/1999/xhtml">Declares the categorical classification of package content.</p>
            </description>
        </vocabulary>
        <vocabulary ID="VocabularyFileGrpAndStructMapDivisionLabel">
            <name>File group names</name>
            <maintenance_agency>DILCIS Board</maintenance_agency>
            <URI>http://earkcsip.dilcis.eu/schema/CSIPVocabularyFileGrpAndStructMapDivisionLabel.xml</URI>
            <context>Values for `fileGrp/@USE`</context>
            <description>
                <p xmlns="http://www.w3.org/1999/xhtml">Describes the uses of the file group `&lt;fileGrp&gt;` that are supported by the profile.</p>
                <p xmlns="http://www.w3.org/1999/xhtml">Own names should be placed in an own extending vocabulary.</p>
            </description>
        </vocabulary>
    </controlled_vocabularies>
    <structural_requirements>
        <metsRootElement ID="metsRootElement">
            <requirement ID="EHR1" REQLEVEL="MUST" EXAMPLES="metsRootElementExample1">
                <description>
                    <head>METS Profile</head>
                    <p xmlns="http://www.w3.org/1999/xhtml">The value is set to "https://earkehealth1.dilcis.eu/profile/E-ARK-eHealth1-ROOT.xml".</p>
                    <dl xmlns="http://www.w3.org/1999/xhtml">
                        <dt>METS XPath</dt><dd>mets/@PROFILE</dd>
                        <dt>Cardinality</dt><dd>1..1</dd>
                        <dt>REF:SIPv2.0.4</dt><dd>https://earksip.dilcis.eu/#SIP2</dd>
                    </dl>
                </description>
            </requirement>
            <requirement ID="EHR2" REQLEVEL="MUST" RELATEDMAT="VocabularyContentCategory" EXAMPLES="metsRootElementExample1">
                <description>
                    <head>Content Category</head>
                    <p xmlns="http://www.w3.org/1999/xhtml">The `mets/@TYPE` attribute is set to the value "OTHER".</p>
                    <dl xmlns="http://www.w3.org/1999/xhtml">
                        <dt>METS XPath</dt><dd>mets/@TYPE</dd>
                        <dt>Cardinality</dt><dd>1..1</dd>
                        <dt>REF:CSIPv2.0.4</dt><dd>https://earkcsip.dilcis.eu/#CSIP2</dd>
                    </dl>
                </description>
            </requirement>
            <requirement ID="EHR3" REQLEVEL="MUST" RELATEDMAT="VocabularyContentCategory" EXAMPLES="metsRootElementExample1">
                <description>
                    <head>Other Content Category</head>
                    <p xmlns="http://www.w3.org/1999/xhtml">The `mets/@csip:OTHERTYPE` attribute is set to the value "Patient Medical Records".</p>
                    <dl xmlns="http://www.w3.org/1999/xhtml">
                        <dt>METS XPath</dt><dd>mets[@TYPE='OTHER']/@csip:OTHERTYPE</dd>
                        <dt>Cardinality</dt><dd>1..1</dd>
                        <dt>REF:CSIPv2.0.4</dt><dd>https://earkcsip.dilcis.eu/#CSIP3</dd>
                    </dl>
                </description>
            </requirement>
            <requirement ID="EHR4" REQLEVEL="MUST" RELATEDMAT="VocabularyContentInformationTypeSpecification" EXAMPLES="metsRootElementExample1">
                <description>
                    <head>Content Information Type Specification</head>
                    <p xmlns="http://www.w3.org/1999/xhtml">The `mets/@csip:CONTENTINFORMATIONTYPE` attribute is set to the value "eHealth1".</p>
                    <dl xmlns="http://www.w3.org/1999/xhtml">
                        <dt>METS XPath</dt><dd>mets/@csip:CONTENTINFORMATIONTYPE</dd>
                        <dt>Cardinality</dt><dd>1..1</dd>
                        <dt>REF:CSIPv2.0.4</dt><dd>https://earkcsip.dilcis.eu/#CSIP4</dd>
                    </dl>
                </description>
            </requirement>
        </metsRootElement>
        <metsHdr ID="metsHeaderElement">
            <requirement ID="EHR5" REQLEVEL="MUST" RELATEDMAT="VocabularyaltrecordIDTYPE" EXAMPLES="metsHdrElementExample1">
                <description>
                    <head>Submission agreement</head>
                    <p xmlns="http://www.w3.org/1999/xhtml">There MUST be a reference to the Submission Agreement associated with the package as the SIP will contain personal data.</p>
                    <p xmlns="http://www.w3.org/1999/xhtml">`@TYPE` is used with the value "SUBMISSIONAGREEMENT".</p>
                    <p xmlns="http://www.w3.org/1999/xhtml">Example: RA 13-2011/5329; 2012-04-12</p>
                    <p xmlns="http://www.w3.org/1999/xhtml">Example: http://submissionagreement.kb.se/dnr331-1144-2011/20120711/</p>
                    <p xmlns="http://www.w3.org/1999/xhtml">Note: It is recommended to use a machine-readable format for a better description of a submission agreement.</p>
                    <p xmlns="http://www.w3.org/1999/xhtml">For example, the submission agreement developed by Docuteam GmbH <a href="http://www.loc.gov/standards/mets/profiles/00000041.xml">http://www.loc.gov/standards/mets/profiles/00000041.xml</a></p>
                    <dl xmlns="http://www.w3.org/1999/xhtml">
                        <dt>METS XPath</dt><dd>metsHdr/altRecordID[@TYPE='SUBMISSIONAGREEMENT']</dd>
                        <dt>Cardinality</dt><dd>1..1</dd>
                        <dt>REF:SIPv2.0.4</dt><dd>https://earksip.dilcis.eu/#SIP5</dd>
                    </dl>
                </description>
            </requirement>
            <requirement ID="EHR6" REQLEVEL="MUST" EXAMPLES="metsHdrElementExample1">
                <description>
                    <head>Archival creator agent</head>
                    <p xmlns="http://www.w3.org/1999/xhtml">A wrapper element that enables to encode the name of the organisation or person that originally created the data being transferred. Please note that this might be different from the organisation which has been charged with preparing and sending the SIP to the archives.</p>
                    <p xmlns="http://www.w3.org/1999/xhtml">It MUST be easy to positively identify the creating organisation (healthcare provider) without which the data has no provenance.</p>
                        <dl xmlns="http://www.w3.org/1999/xhtml">
                        <dt>METS XPath</dt><dd>metsHdr/agent</dd>
                        <dt>Cardinality</dt><dd>1..1</dd>
                        <dt>REF:SIPv2.0.4</dt><dd>https://earksip.dilcis.eu/#SIP9</dd>
                    </dl>
                </description>
            </requirement>
            <requirement ID="EHR7" REQLEVEL="MUST" EXAMPLES="metsHdrElementExample1">
                <description>
                    <head>Archival creator agent type</head>
                    <p xmlns="http://www.w3.org/1999/xhtml">The type of the archvial creator agent is set to the value "ORGANIZATION".</p>
                    <dl xmlns="http://www.w3.org/1999/xhtml">
                        <dt>METS XPath</dt><dd>metsHdr/agent[@ROLE='ORGANIZATION']</dd>
                        <dt>Cardinality</dt><dd>1..1</dd>
                        <dt>REF:SIPv2.0.4</dt><dd>https://earksip.dilcis.eu/#SIP11</dd>
                    </dl>
                </description>
            </requirement>
            <requirement ID="EHR8" REQLEVEL="MUST" EXAMPLES="metsHdrElementExample1">
                <description>
                    <head>Archival creator agent name</head>
                    <p xmlns="http://www.w3.org/1999/xhtml">The name of the organisation(s) that originally created the data being transferred MUST be given.</p>
                    <p xmlns="http://www.w3.org/1999/xhtml">Please note that this might be different from the organisation which has been charged with preparing and sending the SIP to the archives.</p>
                    <dl xmlns="http://www.w3.org/1999/xhtml">
                        <dt>METS XPath</dt><dd>metsHdr/agent/name</dd>
                        <dt>Cardinality</dt><dd>1..*</dd>
                        <dt>REF:SIPv2.0.4</dt><dd>https://earksip.dilcis.eu/#SIP12</dd>
                    </dl>
                </description>
            </requirement>
            <requirement ID="EHR9" REQLEVEL="SHOULD" EXAMPLES="metsHdrElementExample1">
                <description>
                    <head>Archival creator agent additional information</head>
                    <p xmlns="http://www.w3.org/1999/xhtml">The archival creator agent has a note providing a unique identification code for the archival creator.</p>
                    <p xmlns="http://www.w3.org/1999/xhtml">As permitted by national identification systems for healthcare providers submitting Patient Medical Records, an identifier for the provider should be provided.</p>
                     <dl xmlns="http://www.w3.org/1999/xhtml">
                         <dt>METS XPath</dt><dd>metsHdr/agent/note</dd>
                        <dt>Cardinality</dt><dd>0..1</dd>
                         <dt>REF:SIPv2.0.4</dt><dd>https://earksip.dilcis.eu/#SIP13</dd>
                    </dl>
                </description>
            </requirement>
            <requirement ID="EHR10" REQLEVEL="MUST" RELATEDMAT="VocabularyNoteType EHR9" EXAMPLES="metsHdrElementExample1">
                <description>
                    <head>Classification of the archival creator agent additional information</head>
                    <p xmlns="http://www.w3.org/1999/xhtml">The archival creator agent note is typed with the value of "IDENTIFICATIONCODE".</p>
                    <dl xmlns="http://www.w3.org/1999/xhtml">
                        <dt>METS XPath</dt><dd>metsHdr/agent/note/@csip:NOTETYPE</dd>
                        <dt>Cardinality</dt><dd>1..1</dd>
                        <dt>REF:SIPv2.0.4</dt><dd>https://earksip.dilcis.eu/#SIP14</dd>
                    </dl>
                </description>
            </requirement>
        </metsHdr>
        <dmdSec ID="dmdSecElement">
            <requirement ID="EHR11" REQLEVEL="MUST" EXAMPLES="dmdSecExample1">
                 <description>
                    <head>Descriptive metadata</head>
                    <p xmlns="http://www.w3.org/1999/xhtml">There MUST be reference(s) to the Patient Administrative Information held in the metadata/descriptive folder of the package.</p>
                    <dl xmlns="http://www.w3.org/1999/xhtml">
                        <dt>METS XPath</dt><dd>mets/dmdSec</dd>
                        <dt>Cardinality</dt><dd>1..n</dd>
                        <dt>REF:CSIPv2.0.4</dt><dd>https://earkcsip.dilcis.eu/#CSIP17</dd>
                    </dl>
                </description>
            </requirement>
            <requirement ID="EHR12" REQLEVEL="MUST" EXAMPLES="dmdSecExample1">
                <description>
                    <head>Reference to the document with the descriptive metadata</head>
                    <p xmlns="http://www.w3.org/1999/xhtml">There MUST be a reference to the descriptive metadata file located in the “metadata” section of the IP.</p>
                    <dl xmlns="http://www.w3.org/1999/xhtml">
                        <dt>METS XPath</dt><dd>mets/dmdSec/mdRef</dd>
                        <dt>Cardinality</dt><dd>1..1</dd>
                        <dt>REF:CSIPv2.0.4</dt><dd>https://earkcsip.dilcis.eu/#CSIP21</dd>
                    </dl>
                </description>
            </requirement>
            <requirement ID="EHR13" REQLEVEL="MUST" EXAMPLES="dmdSecExample1">
                <description>
                    <head>Type of metadata</head>
                    <p xmlns="http://www.w3.org/1999/xhtml">The value for the metadata type is set to "OTHER".</p>
                    <dl xmlns="http://www.w3.org/1999/xhtml">
                        <dt>METS XPath</dt><dd>mets/dmdSec/mdRef[@MDTYPE='OTHER']</dd>
                        <dt>Cardinality</dt><dd>1..1</dd>
                        <dt>REF:CSIPv2.0.4</dt><dd>https://earkcsip.dilcis.eu/#CSIP25</dd>
                    </dl>
                </description>
            </requirement>
            <requirement ID="EHR14" REQLEVEL="SHOULD" EXAMPLES="dmdSecExample1">
                <description>
                    <head>Type of other metadata</head>
                    <p xmlns="http://www.w3.org/1999/xhtml">Specifies the type of metadata used for Patient Personal information.</p>
                    <p xmlns="http://www.w3.org/1999/xhtml">For example the value will be “FHIR.Patient” if the FHIR Patient resource is used.</p>
                    <dl xmlns="http://www.w3.org/1999/xhtml">
                        <dt>METS XPath</dt><dd>mets/dmdSec/mdRef[@MDTYPE='OTHER']/@OTHERMDTYPE</dd>
                        <dt>Cardinality</dt><dd>1..1</dd>
                    </dl>
                </description>
            </requirement>
        </dmdSec>
        <amdSec ID="amdSecElement">
          <requirement ID="REF_CSIP_1" REQLEVEL="SHOULD">
              <description>
                  <head>Administrative metadata</head>
                  <p xmlns="http://www.w3.org/1999/xhtml">The eHealth1 root METS document amdSec element SHOULD comply with <a href="http://earkcsip.dilcis.eu/#534-use-of-the-mets-administrative-metadata-section-element-amdsec"> amdSec requirements in the CSIP profile.</a></p>
                  <p xmlns="http://www.w3.org/1999/xhtml">In eHealth1 it is required that any rights or digital provenance metadata that is general to the package should be held within the root metadata folder and that any rights or digital provenance metadata that is specific to the data held in the representation should be held in the representation metadata folder.</p>
              </description>
          </requirement>
        </amdSec>
        <fileSec ID="fileSecElement">
            <requirement ID="EHR15" REQLEVEL="MUST" EXAMPLES="fileSecExample1">
                <description>
                    <head>File section</head>
                    <p xmlns="http://www.w3.org/1999/xhtml">The transferred content is placed in a representation folder described with a representation METS document.</p>
                    <p xmlns="http://www.w3.org/1999/xhtml">Only a single file section (`&lt;fileSec&gt;`) element MUST be present.</p>
                    <dl xmlns="http://www.w3.org/1999/xhtml">
                        <dt>METS XPath</dt><dd>mets/fileSec</dd>
                        <dt>Cardinality</dt><dd>1..1</dd>
                        <dt>REF:CSIPv2.0.4</dt><dd>https://earkcsip.dilcis.eu/#CSIP58</dd>
                    </dl>
                </description>
            </requirement>
            <requirement ID="EHR16" REQLEVEL="MUST" EXAMPLES="fileSecExample1">
                <description>
                    <head>File section identifier</head>
                    <p xmlns="http://www.w3.org/1999/xhtml">An `xml:id` identifier for the file section used for internal package references. It must be unique within the package.</p>
                    <dl xmlns="http://www.w3.org/1999/xhtml">
                        <dt>METS XPath</dt><dd>mets/fileSec/@ID</dd>
                        <dt>Cardinality</dt><dd>1..1</dd>
                        <dt>REF:CSIPv2.0.4</dt><dd>https://earkcsip.dilcis.eu/#CSIP59</dd>
                    </dl>
                </description>
            </requirement>
            <requirement ID="EHR17" REQLEVEL="MUST" RELATEDMAT="VocabularyFileGrpAndStructMapDivisionLabel" EXAMPLES="fileSecExample1">
                <description>
                    <head>Documentation file group</head>
                    <p xmlns="http://www.w3.org/1999/xhtml">All documentation pertaining to the transferred content is placed in one or more file group elements with `mets/fileSec/fileGrp/@USE` attribute value "Documentation".</p>
                    <p xmlns="http://www.w3.org/1999/xhtml">Note that any documentation pertaining to the transferred content is referenced within the representation METS.</p>
                    <dl xmlns="http://www.w3.org/1999/xhtml">
                        <dt>METS XPath</dt><dd>mets/fileSec/fileGrp[@USE='Documentation']</dd>
                        <dt>Cardinality</dt><dd>1..n</dd>
                        <dt>REF:CSIPv2.0.4</dt><dd>https://earkcsip.dilcis.eu/#CSIP60</dd>
                    </dl>
                </description>
            </requirement>
            <requirement ID="EHR18" REQLEVEL="MUST" RELATEDMAT="VocabularyFileGrpAndStructMapDivisionLabel" EXAMPLES="fileSecExample1">
                <description>
                    <head>Schema file group</head>
                    <p xmlns="http://www.w3.org/1999/xhtml">All XML schemas used in the information package should be referenced from one or more file groups with `mets/fileSec/fileGrp/@USE` attribute value "Schemas".</p>
                    <p xmlns="http://www.w3.org/1999/xhtml">Note that any schemas pertaining to the transferred content is referenced within the representation mets.</p>
                    <dl xmlns="http://www.w3.org/1999/xhtml">
                        <dt>METS XPath</dt><dd>mets/fileSec/fileGrp[@USE='Schemas']</dd>
                        <dt>Cardinality</dt><dd>1..n</dd>
                        <dt>REF:CSIPv2.0.4</dt><dd>https://earkcsip.dilcis.eu/#CSIP113</dd>
                    </dl>
                </description>
            </requirement>
            <requirement ID="EHR19" REQLEVEL="MUST" RELATEDMAT="VocabularyFileGrpAndStructMapDivisionLabel" EXAMPLES="fileSecExample1">
                 <description>
                    <head>Representations file group</head>
                    <p xmlns="http://www.w3.org/1999/xhtml">A pointer to the METS document describing the Patient Medical Record or pointer to the content being transferred must be present in one or more file groups with `mets/fileSec/fileGrp/@USE` attribute value "Representations".</p>
                    <dl xmlns="http://www.w3.org/1999/xhtml">
                        <dt>METS XPath</dt><dd>mets/fileSec/fileGrp[@USE='Representations']</dd>
                        <dt>Cardinality</dt><dd>1..n</dd>
                        <dt>REF:CSIPv2.0.4</dt><dd>https://earkcsip.dilcis.eu/#CSIP114</dd>
                    </dl>
                </description>
            </requirement>       
            <requirement ID="EHR20" REQLEVEL="MAY" EXAMPLES="fileSecExample1">
                <description>
                    <head>Reference to administrative metadata</head>
                    <p xmlns="http://www.w3.org/1999/xhtml">If administrative metadata has been provided at file group  `mets/fileSec/fileGrp` level this attribute refers to its administrative metadata section by ID.</p>
                    <p xmlns="http://www.w3.org/1999/xhtml">For example there are rights and/or digital provenance metadata that is general to the whole package.</p>
                    <dl xmlns="http://www.w3.org/1999/xhtml">
                        <dt>METS XPath</dt><dd>mets/fileSec/fileGrp/@ADMID</dd>
                        <dt>Cardinality</dt><dd>0..1</dd>
                        <dt>REF:CSIPv2.0.4</dt><dd>https://earkcsip.dilcis.eu/#CSIP61</dd>
                    </dl>
                </description>
            </requirement>
            <requirement ID="EHR21" REQLEVEL="MUST" EXAMPLES="fileSecExample1">                
                <description>
                    <head>Reference to descriptive metadata</head>
                    <p xmlns="http://www.w3.org/1999/xhtml">All Patient Personal Information included in the information package MUST be referenced from a file group element with ‘mets/fileSec/fileGrp/@USE’ attribute “Patient Personal Information”</p>
                    <p xmlns="http://www.w3.org/1999/xhtml">For example as can be described using the resource FHIR.Patient</p>  
                    <dl xmlns="http://www.w3.org/1999/xhtml">
                        <dt>METS XPath</dt><dd>mets/fileSec/fileGrp/@DMDID</dd>
                        <dt>Cardinality</dt><dd>0..n</dd>
                    </dl>
                </description>
            </requirement>
            <requirement ID="EHR22" REQLEVEL="MUST" RELATEDMAT="VocabularyContentInformationTypeSpecification" EXAMPLES="fileSecExample1">
                <description>
                    <head>Content Information Type Specification</head>
                    <p xmlns="http://www.w3.org/1999/xhtml">The value of the attribute `mets/fileSec/fileGrp/@csip:CONTENTINFORMATIONTYPE` is set to "OTHER".</p>
                    <dl xmlns="http://www.w3.org/1999/xhtml">
                        <dt>METS XPath</dt><dd>mets/fileSec/fileGrp[@USE='Representations']/@csip:CONTENTINFORMATIONTYPE</dd>
                        <dt>Cardinality</dt><dd>1..1</dd>
                        <dt>REF:CSIPv2.0.4</dt><dd>https://earkcsip.dilcis.eu/#CSIP62</dd>
                    </dl>
                </description>
            </requirement>
            <requirement ID="EHR23" REQLEVEL="MUST" RELATEDMAT="VocabularyContentInformationTypeSpecification" EXAMPLES="fileSecExample1">
                <description>
                    <head>Other Content Information Type Specification</head>
                    <p xmlns="http://www.w3.org/1999/xhtml">The value of the attribute `mets/fileSec/fileGrp/@csip:OTHERCONTENTINFORMATIONTYPE` is set to "eHealth1".</p>
                    <dl xmlns="http://www.w3.org/1999/xhtml">
                        <dt>METS XPath</dt><dd>mets/fileSec/fileGrp[@csip:CONTENTINFORMATIONTYPE='OTHER']/@csip:OTHERCONTENTINFORMATIONTYPE</dd>
                        <dt>Cardinality</dt><dd>1..1</dd>
                        <dt>REF:CSIPv2.0.4</dt><dd>https://earkcsip.dilcis.eu/#CSIP63</dd>
                    </dl>
                </description>
            </requirement>
        </fileSec>
        <structMap ID="structMapElement">
           <requirement ID="EHR24" REQLEVEL="MUST" EXAMPLES="structMapExample1">
               <description>
                    <head>Representation division</head>
                   <p xmlns="http://www.w3.org/1999/xhtml">There must be a discrete `div` element for each Patient Medical Record.</p>
                    <dl xmlns="http://www.w3.org/1999/xhtml">
                        <dt>METS XPath</dt><dd>mets/structMap[@LABEL='CSIP']/div/div</dd>
                        <dt>Cardinality</dt><dd>1..n</dd>
                        <dt>REF:CSIPv2.0.4</dt><dd>https://earkcsip.dilcis.eu/#CSIP105</dd>
                    </dl>
                </description>
            </requirement>
         </structMap>
         <structLink ID="structLinkElement">
           <requirement REQLEVEL="MAY" ID="REF_METS_1">
               <description>
                   <head>structLink</head>
                   <p xmlns="http://www.w3.org/1999/xhtml">Section not defined or used in CSIP, additional own uses may occur.</p>
                   <p xmlns="http://www.w3.org/1999/xhtml">Information regarding the structural links is found in the <a href="http://www.loc.gov/standards/mets/METSPrimer.pdf">METS Primer</a></p>
               </description>
           </requirement>
         </structLink>
        <behaviorSec ID="behaviorSecElement">
          <requirement REQLEVEL="MAY" ID="REF_METS_2">
              <description>
                  <head>behaviorSec</head>
                  <p xmlns="http://www.w3.org/1999/xhtml">Section not defined or used in CSIP, additional own uses may occur.</p>
                  <p xmlns="http://www.w3.org/1999/xhtml">Information regarding the behavior section is found in the <a href="http://www.loc.gov/standards/mets/METSPrimer.pdf">METS Primer</a></p>
            </description>
          </requirement>
        </behaviorSec>
    </structural_requirements>
    <technical_requirements>
        <content_files>
            <requirement>
                <description>
                    <p xmlns="http://www.w3.org/1999/xhtml">Requirements not stated in CITS eHealth1</p>
                </description>
            </requirement>
        </content_files>
        <behavior_files>
            <requirement>
                <description>
                    <p xmlns="http://www.w3.org/1999/xhtml">Requirements not stated in CITS eHealth1</p>
                </description>
            </requirement>
        </behavior_files>
        <metadata_files>
            <requirement>
                <description>
                    <p xmlns="http://www.w3.org/1999/xhtml">Requirements not stated in CITS eHealth1</p>
                </description>
            </requirement>
        </metadata_files>
    </technical_requirements>
    <tool>
        <note>
            <p xmlns="http://www.w3.org/1999/xhtml">Currently no tool</p>
        </note>
    </tool>
    <Example ID="metsRootElementExample1" LABEL="METS example of root METS element for an IP following the CITS eHealth1">
       <mets:mets
            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            xmlns:mets="http://www.loc.gov/METS/"
            xmlns:xlink="http://www.w3.org/1999/xlink"
            xmlns:csip="https://DILCIS.eu/XML/METS/CSIPExtensionMETS"
            xmlns:sip="https://DILCIS.eu/XML/METS/SIPExtensionMETS"
            OBJID= "ehealth1-root-mets-example" 
            TYPE= "OTHER" 
            csip:OTHERTYPE="Patient Medical Records" 
            csip:CONTENTINFORMATIONTYPE="eHealth1"
            PROFILE="https://earkehealth1.dilcis.eu/profile/E-ARK-eHealth1-ROOT.xml" 
            xsi:schemaLocation="http://www.loc.gov/METS/ http://www.loc.gov/standards/mets/mets.xsd
            http://www.w3.org/1999/xlink http://www.loc.gov/standards/mets/xlink.xsd
            https://dilcis.eu/XML/METS/CSIPExtensionMETS 
            https://earkcsip.dilcis.eu/schema/DILCISExtensionMETS.xsd 
            https://dilcis.eu/XML/METS/SIPExtensionMETS 
            https://earksip.dilcis.eu/schema/DILCISExtensionSIPMETS.xsd">
        </mets:mets>    
    </Example>
    <Example ID="metsHdrElementExample1" LABEL="METS example of root METS Header with submission agreements for an eHealth1 IP.">
       <mets:metsHdr CREATEDATE="2018-04-24T14:37:49.602+01:00" LASTMODDATE="2018-04-24T14:37:49.602+01:00" RECORDSTATUS="NEW" csip:OAISPACKAGETYPE="SIP">
            <mets:agent ROLE="CREATOR" TYPE="ORGANIZATION">
                <mets:name>Skane University Hospital</mets:name>
                <mets:note csip:NOTETYPE="IDENTIFICATIONCODE">ID:89101112 </mets:note>
            </mets:agent>
            <mets:agent ROLE="OTHER" TYPE="INDIVIDUAL" OTHERROLE="SUBMITTER">
                <mets:name>Sven Svensson</mets:name>
                <mets:note>Phone: 08-123456, Email: sven.svensson@mail.mail</mets:note>
            </mets:agent>            
            <mets:agent ROLE="ARCHIVIST" TYPE="ORGANIZATION">
                <mets:name>The Swedish health agency</mets:name>
                <mets:note csip:NOTETYPE="IDENTIFICATIONCODE">ID:1234567</mets:note>
             </mets:agent>   
             <mets:agent ROLE="PRESERVATION" TYPE="ORGANIZATION">
                    <mets:name>The Swedish Health Agency</mets:name>
                    <mets:note csip:NOTETYPE="IDENTIFICATIONCODE">ID:1234567</mets:note>
             </mets:agent>
            <mets:altRecordID TYPE="SUBMISSIONAGREEMENT">http://submissionagreement.kb.se/dnr331-1144-2011/20120711/</mets:altRecordID>
            <mets:altRecordID TYPE="PREVIOUSSUBMISSIONAGREEMENT">FM 12-2387/12726, 2007-09-19</mets:altRecordID>
            <mets:altRecordID TYPE="REFERENCECODE">SE/RA/123456/24/P</mets:altRecordID>
            <mets:altRecordID TYPE="PREVIOUSREFERENCECODE">SE/FM/123/123.1/123.1.3</mets:altRecordID>
        </mets:metsHdr>
    </Example>
    <Example ID="dmdSecExample1" LABEL="METS example of Root METS dmdSec with reference to HL7 FHIR Patient Administrative Information is used">
       <mets:dmdSec ID="dmd-ehealth-file" CREATED="2018-04-24T15:27:45.702+01:00" STATUS="CURRENT">
            <mets:mdRef LOCTYPE= "URL" 
                xlink:href= "metadata/descriptive/patient1.xml" 
                xlink:type="simple"
                MDTYPE="OTHER"
                OTHERMDTYPE="FHIR.Patient" 
                MIMETYPE="application/xml" 
                SIZE="643"
                CREATED="2018-04-24T14:11:29.309+01:00"
                CHECKSUM="66EEDDF0A22EF57078694B67CA45DF301034556D6CB493531356C4FFE92AB6B1"
                CHECKSUMTYPE="SHA-256" />
        </mets:dmdSec>
    </Example>
    <Example ID="fileSecExample1" LABEL="METS root example for eHealth1 with file information together with the info from CS IP.">
       <mets:fileSec ID="filesec-docx-file-1">
            <mets:fileGrp ID="filegrp-documentation" USE="Documentation">
                <mets:file ID="file-ptr-documentation-file1" MIMETYPE="application/vnd.openxmlformats-officedocument.wordprocessing.document" SIZE="43445212" CREATED="2012-08-15T12:08:15.432+01:00" CHECKSUM="160D71F56C2CE685CE7FBD679076FD76B3C67EE9AB5062F5EF5C99AE39C1F43B" CHECKSUMTYPE="SHA-256">
                    <mets:FLocat LOCTYPE="URL" xlink:type="simple" xlink:href="documentation/File1.docx"/>                        
                </mets:file>
                <mets:file ID="file-ptr-documentation-file2" MIMETYPE="application/vnd.openxmlformats-officedocument.wordprocessingml.document" SIZE="31462826" CREATED="2012-08-15T14:44:45.432+01:00" CHECKSUM="0FE9683451D0390BCDEF19CE10CFD287A2D944B6A33D246681FEF27F44FFAF1D" CHECKSUMTYPE="SHA-256">
                    <mets:FLocat LOCTYPE="URL" xlink:type="simple" xlink:href="documentation/File2.docx"/>                        
                </mets:file>
            </mets:fileGrp>
            <mets:fileGrp ID="filegrp-schemas" USE="Schemas">
                <mets:file ID="file-ptr-schema1" MIMETYPE="text/xsd" SIZE="123917" CREATED="2018-04-24T14:37:49.617+01:00" CHECKSUM="4073D09CA1BAE023D5A7E2010819BF0E8A8EB3C015444D0673733630DE08461C" CHECKSUMTYPE="SHA-256">
                    <mets:FLocat LOCTYPE="URL" xlink:type="simple" xlink:href="schemas/fhirpatient.xsd"/>                        
                </mets:file>
                <mets:file MIMETYPE="application/xml" USE="Package METS" CHECKSUMTYPE="SHA-256" CREATED="2015-12-04T09:59:45" CHECKSUM="B565CA93CD86950503F233A7906E4DB709088BA42B9D109D4A8D6F183799603F" ID="file-ptr-schema2" SIZE="6814"> 
                    <mets:FLocat xlink:href="schemas/METS.xsd" xlink:type="simple" LOCTYPE="URL"/> 
                </mets:file>
            </mets:fileGrp>
            <mets:fileGrp ID="filegrp-representation" USE="Representations/submission/data" csip:CONTENTINFORMATIONTYPE="eHealth1">
                <mets:file ID="file-ptr-representation-mets" MIMETYPE="xml" SIZE="1338744" CREATED="2018-04-24T14:33:23.617+01:00" CHECKSUM="B1CF59678A21C2805370536AB1097735D7E9F3FDDDCAE3757426ED85F6350A48" CHECKSUMTYPE="SHA-256">
                    <mets:FLocat LOCTYPE="URL" xlink:type="simple" xlink:href="representations/submission/data/mets.xml"/>                        
                </mets:file>
            </mets:fileGrp>
        </mets:fileSec>
    </Example>
    <Example ID="structMapExample1" LABEL="METS root example of the mandatory structural map including representations for eHealth1">
        <mets:structMap ID="struct-map-example-1" TYPE="PHYSICAL" LABEL="CSIP">
            <mets:div ID="struct-map-example-div" LABEL="csip-mets-example">
                <mets:div ID="struct-map-metadata-div" LABEL="Metadata" DMDID="dmd-ehealth-file"/>
                <mets:div
                    ID="struct-map-documentation-div" LABEL="Documentation">
                    <mets:fptr FILEID="filegrp-documentation"/>
                </mets:div>
                <mets:div ID="struct-map-schema-div" LABEL="Schemas">
                    <mets:fptr FILEID="filegrp-schemas"/>
                </mets:div>
                <mets:div ID="struct-map-reps-sub-div" LABEL="Representations/submission">
                    <mets:mptr LOCTYPE="URL" xlink:type="simple" xlink:href="representations/submission/METS.xml" xlink:title="file-grp-rep-sub"/>
                </mets:div>
            </mets:div>
        </mets:structMap>
    </Example>    
    <Appendix NUMBER="1" LABEL="Example of a whole METS document describing a submission information package following CITS eHealth1.">
          <!-- Karin: Validation error since the value isnt in the value list -->
        <mets:mets
            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            xmlns:mets="http://www.loc.gov/METS/"
            xmlns:xlink="http://www.w3.org/1999/xlink"
            xmlns:csip="https://DILCIS.eu/XML/METS/CSIPExtensionMETS"
            xmlns:sip="https://DILCIS.eu/XML/METS/SIPExtensionMETS"
            OBJID= "ehealth1-root-mets-example" 
            TYPE= "OTHER" 
            csip:OTHERTYPE="Patient Medical Records" 
            csip:CONTENTINFORMATIONTYPE="eHealth1"
            PROFILE="https://earkehealth1.dilcis.eu/profile/E-ARK-eHealth1-ROOT.xml" 
            xsi:schemaLocation="http://www.loc.gov/METS/ http://www.loc.gov/standards/mets/mets.xsd
            http://www.w3.org/1999/xlink http://www.loc.gov/standards/mets/xlink.xsd
            https://dilcis.eu/XML/METS/CSIPExtensionMETS 
            https://earkcsip.dilcis.eu/schema/DILCISExtensionMETS.xsd 
            https://dilcis.eu/XML/METS/SIPExtensionMETS 
            https://earksip.dilcis.eu/schema/DILCISExtensionSIPMETS.xsd">
            <mets:metsHdr CREATEDATE="2018-04-24T14:37:49.602+01:00" 
                LASTMODDATE="2018-04-24T14:37:49.602+01:00" 
                RECORDSTATUS="NEW" 
                csip:OAISPACKAGETYPE="SIP">                
                <mets:agent ROLE="CREATOR" TYPE="ORGANIZATION">
                    <mets:name>Skane University Hospital</mets:name>
                    <mets:note csip:NOTETYPE="IDENTIFICATIONCODE">ID:89101112 </mets:note>
                </mets:agent>
                <mets:agent ROLE="OTHER" TYPE="INDIVIDUAL" OTHERROLE="SUBMITTER">
                    <mets:name>Sven Svensson</mets:name>
                    <mets:note>Phone: 08-123456, Email: sven.svensson@mail.mail</mets:note>
                </mets:agent>            
                <mets:agent ROLE="ARCHIVIST" TYPE="ORGANIZATION">
                    <mets:name>The Swedish health agency</mets:name>
                    <mets:note csip:NOTETYPE="IDENTIFICATIONCODE">ID:1234567</mets:note>
                </mets:agent>   
                <mets:agent ROLE="PRESERVATION" TYPE="ORGANIZATION">
                    <mets:name>The Swedish Health Agency</mets:name>
                    <mets:note csip:NOTETYPE="IDENTIFICATIONCODE">ID:1234567</mets:note>
                </mets:agent>
                <mets:altRecordID TYPE="SUBMISSIONAGREEMENT">http://submissionagreement.kb.se/dnr331-1144-2011/20120711/</mets:altRecordID>
                <mets:altRecordID TYPE="PREVIOUSSUBMISSIONAGREEMENT">FM 12-2387/12726, 2007-09-19</mets:altRecordID>
                <mets:altRecordID TYPE="REFERENCECODE">SE/RA/123456/24/P</mets:altRecordID>
                <mets:altRecordID TYPE="PREVIOUSREFERENCECODE">SE/FM/123/123.1/123.1.3</mets:altRecordID>
            </mets:metsHdr>
            <mets:dmdSec ID="dmd-ehealth-file" CREATED="2018-04-24T15:27:45.702+01:00" STATUS="CURRENT">
                <mets:mdRef LOCTYPE= "URL" 
                    xlink:href= "metadata/descriptive/patient1.xml" 
                    xlink:type="simple"
                    MDTYPE="OTHER"
                    OTHERMDTYPE="FHIR.Patient" 
                    MIMETYPE="application/xml" 
                    SIZE="643"
                    CREATED="2018-04-24T14:11:29.309+01:00"
                    CHECKSUM="66EEDDF0A22EF57078694B67CA45DF301034556D6CB493531356C4FFE92AB6B1"
                    CHECKSUMTYPE="SHA-256" />
            </mets:dmdSec>
            <mets:fileSec ID="filesec-docx-file-1">
                <mets:fileGrp ID="filegrp-documentation" USE="Documentation">
                    <mets:file ID="file-ptr-documentation-file1" MIMETYPE="application/vnd.openxmlformats-officedocument.wordprocessing.document" SIZE="43445212" CREATED="2012-08-15T12:08:15.432+01:00" CHECKSUM="160D71F56C2CE685CE7FBD679076FD76B3C67EE9AB5062F5EF5C99AE39C1F43B" CHECKSUMTYPE="SHA-256">
                        <mets:FLocat LOCTYPE="URL" xlink:type="simple" xlink:href="documentation/File1.docx"/>                        
                    </mets:file>
                    <mets:file ID="file-ptr-documentation-file2" MIMETYPE="application/vnd.openxmlformats-officedocument.wordprocessingml.document" SIZE="31462826" CREATED="2012-08-15T14:44:45.432+01:00" CHECKSUM="0FE9683451D0390BCDEF19CE10CFD287A2D944B6A33D246681FEF27F44FFAF1D" CHECKSUMTYPE="SHA-256">
                        <mets:FLocat LOCTYPE="URL" xlink:type="simple" xlink:href="documentation/File2.docx"/>                        
                    </mets:file>
                </mets:fileGrp>
                <mets:fileGrp ID="filegrp-schemas" USE="Schemas">
                    <mets:file ID="file-ptr-schema1" MIMETYPE="text/xsd" SIZE="123917" CREATED="2018-04-24T14:37:49.617+01:00" CHECKSUM="4073D09CA1BAE023D5A7E2010819BF0E8A8EB3C015444D0673733630DE08461C" CHECKSUMTYPE="SHA-256">
                        <mets:FLocat LOCTYPE="URL" xlink:type="simple" xlink:href="schemas/fhirpatient.xsd"/>                        
                    </mets:file>
                    <mets:file MIMETYPE="application/xml" USE="Package METS" CHECKSUMTYPE="SHA-256" CREATED="2015-12-04T09:59:45" CHECKSUM="B565CA93CD86950503F233A7906E4DB709088BA42B9D109D4A8D6F183799603F" ID="file-ptr-schema2" SIZE="6814"> 
                        <mets:FLocat xlink:href="schemas/METS.xsd" xlink:type="simple" LOCTYPE="URL"/> 
                    </mets:file>
                </mets:fileGrp>
                <mets:fileGrp ID="filegrp-representation" USE="Representations/submission/data" csip:CONTENTINFORMATIONTYPE="eHealth1">
                    <mets:file ID="file-ptr-representation-mets" MIMETYPE="xml" SIZE="1338744" CREATED="2018-04-24T14:33:23.617+01:00" CHECKSUM="B1CF59678A21C2805370536AB1097735D7E9F3FDDDCAE3757426ED85F6350A48" CHECKSUMTYPE="SHA-256">
                        <mets:FLocat LOCTYPE="URL" xlink:type="simple" xlink:href="representations/submission/data/mets.xml"/>                        
                    </mets:file>
                </mets:fileGrp>
            </mets:fileSec>
            <mets:structMap ID="struct-map-example-1" TYPE="PHYSICAL" LABEL="CSIP">
                <mets:div ID="struct-map-example-div" LABEL="csip-mets-example">
                    <mets:div ID="struct-map-metadata-div" LABEL="Metadata" DMDID="dmd-ehealth-file"/>
                    <mets:div
                        ID="struct-map-documentation-div" LABEL="Documentation">
                        <mets:fptr FILEID="filegrp-documentation"/>
                    </mets:div>
                    <mets:div ID="struct-map-schema-div" LABEL="Schemas">
                        <mets:fptr FILEID="filegrp-schemas"/>
                    </mets:div>
                    <mets:div ID="struct-map-reps-sub-div" LABEL="Representations/submission">
                        <mets:mptr LOCTYPE="URL" xlink:type="simple" xlink:href="representations/submission/METS.xml" xlink:title="file-grp-rep-sub"/>
                    </mets:div>
                </mets:div>
            </mets:structMap>
        </mets:mets>
    </Appendix>
</METS_Profile>
