ehrbase / openEHR_SDK

A SDK to facilitate the development of openEHR applications
Other
48 stars 28 forks source link

Enum not generated because name collision (?) #84

Closed ppazos closed 4 years ago

ppazos commented 4 years ago

Steps to reproduce

For the pregnancy status OPT https://ckm.highmed.org/ckm/templates/1246.169.1095

The SDK generator generated one class "StatusDefiningcode" that is one of two expected to be generated:

Actual result

One class is missing.

And the field generated for the COMPOSITION actually points to the class generated for the OBSERVATION, which doesn't contain the right values. > https://github.com/ehrbase/fhir-bridge/blob/feature/50_mapping_pregnancy_status/src/main/java/org/ehrbase/fhirbridge/opt/schwangerschaftsstatuscomposition/SchwangerschaftsstatusComposition.java#L18

Expected result

To have 2 classes generated and the COMPOSITION field "statusDefiningCode" to point to the right class > https://github.com/ehrbase/fhir-bridge/blob/feature/50_mapping_pregnancy_status/src/main/java/org/ehrbase/fhirbridge/opt/schwangerschaftsstatuscomposition/SchwangerschaftsstatusComposition.java#L44

Success criteria

jakesmolka commented 4 years ago

Maybe linked to or same root problem like in https://github.com/ehrbase/project_management/issues/374