Skip to content

Support for nested/complex types #7

@chgl

Description

@chgl

Something like:

[GenerateFhirParameters]
public class OuterModel
{
    public string Id { get; init; }
    public InnerModel Person{ get; init; } 
}

public class InnerModel
{
    public string Name { get; init; }
    public int Age { get; init; }
}

should be serializable as well. This will probably require repesenting the inner model using part:

{
  "resourceType": "Parameters",
  "parameter": [
    {
      "name": "id",
      "valueString": "OuterModel.Id"
    },
    {
      "name": "person",
      "part": [
        {
          "name": "name",
          "valueString": "InnerModel.Name"
        },
        {
          "name": "age",
          "valueInteger": "InnerModel.Age"
        }
      ]
    }
  ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions