Skip to content

QiCore field annotations #1

@stefan-evinance

Description

@stefan-evinance

The FHIR reference Java implementation provides field annotations, for instance https://github.com/jamesagnew/hapi-fhir/blob/1adfc4b4d963159ac01fe0aae036424200912823/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ProcedureRequest.java
defines:

 @Child(name = "code", type = {CodeableConcept.class}, order=2, min=1, max=1, modifier=false, summary=true)
    @Description(shortDefinition="What procedure to perform", formalDefinition="The specific procedure that is ordered. Use text if the exact nature of the procedure cannot be coded." )
    protected CodeableConcept code;

from this annotation we can easily find out the name, type, and cardinality attributes of the given field.
It would be useful to have the same information in QiCore adapters, for instance:
https://github.com/cqframework/qicore_model/blob/master/src/main/java/org/cqf/qicore/dstu3/qicoreprocedurerequestAdapter.java
defines:

public CodeableConcept getReasonRefused()
   {
...
}

but it's not immediately clear what the name of the field is in QiCore or its cardinality.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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