Skip to content
This repository was archived by the owner on May 12, 2026. It is now read-only.
This repository was archived by the owner on May 12, 2026. It is now read-only.

Validate subtype class inherits from ValueSetCollection #18908

@JFisk42

Description

@JFisk42
Background

For the prime-fhir-converter library, when registering the subtypes for the mapper (LINK) the class passed in should inherit from ValueSetCollection (LINK). This was internal business logic before but now implementers may need to access this method.

Investigation Path
  • Jackson Mapper may already give us this type checking. The first check should be to see if passing in a random class that does not inherit from ValueSetCollection will return an error from Jackson Mapper.
  • If Jackson Mapper does not throw an exception for the wrong class type, then a check will need to be added to ConfigSchemaReader.
Additional Links

Original ReportStream Implementation (LINK)
Example usage of new prime-fhir-converter pattern (LINK)

Dev Notes
Acceptance Criteria

One criteria must be met:

  • JacksonMapper performs validation of class inheritance when registering subtype, prime-fhir-converter should properly surface this error to consumers.
  • prime-fhir-converter performs validation of class inheritance before registering subtype

Metadata

Metadata

Assignees

Labels

o&mOperations & Maintenance

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions