Uploaded image for project: 'FHIR Module v2'
  1. FHIR Module v2
  2. FM2-421

Can't save Immunization

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: FM2 1.2.2
    • Component/s: None
    • Labels:
      None

      Description

      POSTing an immunization seems to always yield error 422, with the text

      > 'obs id is null' failed to validate with reason: error.noValue, groupMembers: A member of this obs group has an error

      This can be reproduced by POSTing with the following payload to openmrs-spa.org/openmrs/ws/fhir2/R4/Immunization

      {
        "resourceType":"Immunization",
        "status":"completed",
        "vaccineCode":{
          "coding":[
            {
              "code":"36AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
              "display":"MEASLES VACCINATION"
            }
          ]
        },
        "patient":{
          "type":"Patient",
          "reference":"Patient/ad17743f-95df-47d0-8f3d-5ddb3c20bdb6"
        },
        "encounter":{
          "type":"Encounter",
          "reference":"Encounter/84cc6801-c409-4ed1-b904-f4396e49c31a"
        },
        "occurrenceDateTime":"2021-07-14T07:00:00.000Z",
        "expirationDate":"2021-07-28T07:00:00.000Z",
        "location":{
          "type":"Location",
          "reference":"Location/6351fcf4-e311-4a19-90f9-35667d99a8af"
        },
        "performer":[
          {
            "actor":{
              "type":"Practitioner",
              "reference":"Practitioner/fd94c361-5182-4fb0-b1d3-31c824a645c0"
            }
          }
        ],
        "manufacturer":{
          "display":"Pfizer"
        },
        "lotNumber":"22",
        "protocolApplied":[
          {
          }
        ]
      }
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              Assignee:
              ibacher Ian Bacher
              Reporter:
              bistenes Brandon Istenes
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: