Skip to content
This repository has been archived by the owner on Jan 4, 2023. It is now read-only.

New components organization for v2 #44

Open
Klochette opened this issue Apr 9, 2021 · 0 comments
Open

New components organization for v2 #44

Klochette opened this issue Apr 9, 2021 · 0 comments

Comments

@Klochette
Copy link
Contributor

Description

For a v2 of youyou, we need to update the organization of the components

Alternatives

ProfileEditor (linked to ProfileSelector)

Parent component for the following components :

RenderResourceTree

  • get the profile (in the ProfileSelector)
  • dispatch actions in the ElementDefinitionSlice to update the selected elementDefinition

ElementDefinitionEditor

  • get the selected elementDefinition (with main ElementDefinitionSelector)
  • render inputs recursively (complex types included, see in the FhirDataTypes slice already existing on the Youyou project)
  • dispatch the changes to the ElementDefinitionSlice (with the paths, and the input values)
  • dispatch on submit to a thunk of the ElementDefinitionSlice which itself dispatches to the ProfileSlice and will write to the profile being modified

Metadata editor

  • get the metadata (with main MetadataSelector)
  • render inputs recursively (complex types included, see in the FhirDataTypes slice already existing on the Youyou project)
  • dispatch the changes to the MetadataSlice (with the paths, and the input values)
  • dispatch on submit to a thunk of the MetadataSlice which itself dispatches to the ProfileSlice and will write to the profile being modified
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant