Skip to content

Add decisions (and consultations) into the ODP schema #276

@apricot13

Description

@apricot13

Starting the discussion for adding decisions into the ODP schema.

From the perspective of the DPR we're using only a handful of fields. There has already been a proposal about the data structure here so some of the fields we're using from BOPs will likely match up nicely.

Questions to discuss Tuesday 19 November 2024

  • Should decision data be separate to consultations or combined with?
  • What structure should the above fields have
  • What other data should be included in the schema

DPR data

This is the data we're currently using in displaying decisions, it currently comes from BOPs.

application: {
  status:
    | "pending"
    | "not_started"
    | "invalidated"
    | "assessment_in_progress"
    | "in_assessment"
    | "awaiting_determination"
    | "in_committee"
    | "to_be_reviewed"
    | "determined"
    | "returned"
    | "withdrawn"
    | "closed";

  receivedAt: string;
  publishedAt?: string | null;
  determinedAt?: string | null;
  decision?: string | null;
  validAt: string | null;

  consultation: {
    endDate: string | null;
    publishedComments: DprComment[] | null;
    consulteeComments: DprComment[] | null;
  };
};

Other links & References

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions