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

Use only one Status Defining Code generator #181

Open
8 tasks
SevKohler opened this issue Feb 15, 2021 · 0 comments
Open
8 tasks

Use only one Status Defining Code generator #181

SevKohler opened this issue Feb 15, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@SevKohler
Copy link
Contributor

Background

As far as i can see it the status code is the same instance for every case generated. Using one specific class for every class using the StatusDefining code would save a lot of duplicates and makes the usage easier (for mappings e.g.), instead of every time generating a new one.

Example:


public enum StatusDefiningCode implements EnumValueSet {
  VORLAEUFIG("vorläufig", "*", "local", "at0011"),

  FINAL("final", "*", "local", "at0012"),

  REGISTRIERT("registriert", "*", "local", "at0010"),

  GEAENDERT("geändert", "*", "local", "at0013");

  private String value;

  private String description;

  private String terminologyId;

  private String code;

  StatusDefiningCode(String value, String description, String terminologyId, String code) {
    this.value = value;
    this.description = description;
    this.terminologyId = terminologyId;
    this.code = code;
  }

  public String getValue() {
     return this.value ;
  }

  public String getDescription() {
     return this.description ;
  }

  public String getTerminologyId() {
     return this.terminologyId ;
  }

  public String getCode() {
     return this.code ;
  }
}

Acceptance criteria

  • Item 1

Definition of Done

  • Review / Merge request approved (P2P session)
  • Unit tests passed
  • Updated documentation (Javadoc and Sphinx)
  • Acceptance criteria fulfilled
  • Build without errors
  • Release notes prepared
  • Runtime warnings
@SevKohler SevKohler added the enhancement New feature or request label Feb 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant