hi could someone please help me to create a correct pattern matching this is a example of the type:
> [{%Master{__meta__: #Ecto.Schema.Metadata<:loaded, "seligibility", "patient">,
> date_of_birth: nil, first_name: nil, gender: nil, id: 1, language_code: nil,
> last_name: nil, middle_name: nil,
> mod_start_date: %DateTime{calendar: Calendar.ISO, day: 12, hour: 0,
> microsecond: {0, 6}, minute: 0, month: 12, second: 0, std_offset: 0,
> time_zone: "Etc/UTC", utc_offset: 0, year: 1994, zone_abbr: "UTC"},
> patient_num: "12345678", person_code: "LLC", prefix: nil,
> relationship_code: nil, ssn: nil, test_only: nil},
> [%SON{__meta__: #Ecto.Schema.Metadata<:loaded, "seligibility", "patient_eligibility_list">,
> coverage_type: "FAM", end_date: nil, group_id: 1, item_id: 1, parent_id: 1,
> start_date: nil,
> updated_at: %DateTime{calendar: Calendar.ISO, day: 2, hour: 0,
> microsecond: {0, 6}, minute: 0, month: 12, second: 0, std_offset: 0,
> time_zone: "Etc/UTC", utc_offset: 0, year: 1995, zone_abbr: "UTC"}},
> %SON{__meta__: #Ecto.Schema.Metadata<:loaded, "seligibility", "patient_eligibility_list">,
> coverage_type: "FAM", end_date: nil, group_id: 1, item_id: 2, parent_id: 1,
> start_date: nil,
> updated_at: %DateTime{calendar: Calendar.ISO, day: 2, hour: 0,
> microsecond: {0, 6}, minute: 0, month: 12, second: 0, std_offset: 0,
> time_zone: "Etc/UTC", utc_offset: 0, year: 1995, zone_abbr: "UTC"}}]}]
I was using: [{master, [son]}]
, and it’s incorrect
idon’t know how to fix it.