Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Regexp format control #536

Open
romaintailhurat opened this issue Dec 12, 2022 · 1 comment
Open

Support for Regexp format control #536

romaintailhurat opened this issue Dec 12, 2022 · 1 comment
Assignees

Comments

@romaintailhurat
Copy link
Collaborator

romaintailhurat commented Dec 12, 2022

🇬🇧 In Pogues, a text field can be checked by a regular expression ("Pattern" field). This data is not propagated through Eno, it should.

🇫🇷 Dans Pogues, un champ texte peut être contrôlé par une expression régulière (champ "Motif"). Cette information n'est pas propagée par Eno, elle devrait l'être

Exemple DDI pour un SIRET:

  • in a table
<d:StructuredMixedGridResponseDomain>
    <d:GridResponseDomainInMixed>
        <d:TextDomain minLength="14" maxLength="14" regExp="^[0-9]{14}$">
            <r:OutParameter isArray="false">
                <r:Agency>fr.insee</r:Agency>
                <r:ID>jl3j68kq-RDOP-khkavybv</r:ID>
                <r:Version>1</r:Version>
                <r:TextRepresentation minLength="14" maxLength="14" regExp="^[0-9]{14}$"/>
            </r:OutParameter>
        </d:TextDomain>
        <d:GridAttachment>
            <d:CellCoordinatesAsDefined>
                <d:SelectDimension rank="1" rangeMinimum="1" rangeMaximum="1"/>
                <d:SelectDimension rank="2" rangeMinimum="1" rangeMaximum="1"/>
            </d:CellCoordinatesAsDefined>
        </d:GridAttachment>
    </d:GridResponseDomainInMixed>
</d:StructuredMixedGridResponseDomain>
  • the variable itself
<l:Variable>
    <r:Agency>fr.insee</r:Agency>
    <r:ID>k0xxby2u</r:ID>
    <r:Version>1</r:Version>
    <l:VariableName>
        <r:String xml:lang="fr-FR">REGROUP</r:String>
    </l:VariableName>
    <r:Label>
        <r:Content xml:lang="fr-FR">Numéro Siret</r:Content>
    </r:Label>
    <r:SourceParameterReference>
        <r:Agency>fr.insee</r:Agency>
        <r:ID>jl3j68kq-QOP-khkavybv</r:ID>
        <r:Version>1</r:Version>
        <r:TypeOfObject>OutParameter</r:TypeOfObject>
    </r:SourceParameterReference>
    <r:QuestionReference>
        <r:Agency>fr.insee</r:Agency>
        <r:ID>jl3j68kq</r:ID>
        <r:Version>1</r:Version>
        <r:TypeOfObject>QuestionGrid</r:TypeOfObject>
    </r:QuestionReference>
    <l:VariableRepresentation>
        <r:TextRepresentation minLength="14" maxLength="14" regExp="^[0-9]{14}$"/>
    </l:VariableRepresentation>
</l:Variable>

au lieu de

<l:Variable>
            <r:Agency>fr.insee</r:Agency>
            <r:ID>lhqc1fyf</r:ID>
            <r:Version>1</r:Version>
            <l:VariableName>
               <r:String xml:lang="fr-FR">Q1</r:String>
            </l:VariableName>
            <r:Label>
               <r:Content xml:lang="fr-FR">Q1 label </r:Content>
            </r:Label>
            <r:SourceParameterReference>
               <r:Agency>fr.insee</r:Agency>
               <r:ID>jfazk91m-QOP-jfazhq57</r:ID>
               <r:Version>1</r:Version>
               <r:TypeOfObject>OutParameter</r:TypeOfObject>
            </r:SourceParameterReference>
            <r:QuestionReference>
               <r:Agency>fr.insee</r:Agency>
               <r:ID>jfazk91m</r:ID>
               <r:Version>1</r:Version>
               <r:TypeOfObject>QuestionItem</r:TypeOfObject>
            </r:QuestionReference>
            <l:VariableRepresentation>
               <r:TextRepresentation maxLength="14"/>
            </l:VariableRepresentation>
         </l:Variable>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants