Skip to content

repeatprefx and repeatsuffix #50

@ATHULKNAIR

Description

@ATHULKNAIR

On a recent project, I created two datapoints with path :

  • abc.v0/problem_diagnosis:0/problem_diagnosis

  • abc.v0/problem_diagnosis_as_per_intimation:0/problem_diagnosis

This is the peice of code i used

    <mb-form>
         <mb-search-multiple
            path="abc.v0/problem_diagnosis_as_per_intimation:0/problem_diagnosis"
            repeatprefix="abc.v0/problem_diagnosis_as_per_intimation"
            repeatsuffix="problem_diagnosis"
            placeholder="Search for Diagnosis"
         >
          <mb-filter
            value="<64572001 | Disease (disorder) | OR <272379006 | Event (event) |"
            label="Diagnosis"
          />
        </mb-search-multiple>

        <mb-search-multiple
            path="abc.v0/problem_diagnosis:0/problem_diagnosis"
            repeatprefix="abc.v0/problem_diagnosis"
            repeatsuffix="problem_diagnosis"
            placeholder="Search for Diagnosis"
         >
          <mb-filter
            value="<64572001 | Disease (disorder) | OR <272379006 | Event (event) |"
            label="Diagnosis"
          />
        </mb-search-multiple>
     </mb-form>

On setting the form with the object given below, I found out that both the fields getting populated.

{
    "abc.v0/problem_diagnosis_as_per_intimation:0/problem_diagnosis|code": "195967001",
    "abc.v0/problem_diagnosis_as_per_intimation:0/problem_diagnosis|terminology": "SNOMED-CT",
    "abc.v0/problem_diagnosis_as_per_intimation:0/problem_diagnosis|value": "Asthma",
}

Is this expected behaviour?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions