title: Asymmetrik FHIR mongo: partial patient stored
body: <p>I'm running <code>node-fhir-server-mongo</code>.</p>
  <p>I'm trying to create a patient:</p>
  <pre><code>curl -X PUT &quot;http://localhost:3000/4_0_0/Patient/example1&quot; -H &quot;application/fhir+json&quot; --data &quot;@patient.json&quot;
  </code></pre>
  <p>My <code>patient.json</code> is:</p>
  <pre class="lang-json prettyprint-override"><code>{
    &quot;resourceType&quot;: &quot;Patient&quot;,
    &quot;id&quot;: &quot;example&quot;,
    &quot;text&quot;: {
      &quot;status&quot;: &quot;generated&quot;,
      &quot;div&quot;: &quot;&lt;div xmlns=\&quot;http://www.w3.org/1999/xhtml\&quot;&gt;\n\t\t\t&lt;table&gt;\n\t\t\t\t&lt;tbody&gt;\n\t\t\t\t\t&lt;tr&gt;\n\t\t\t\t\t\t&lt;td&gt;Name&lt;/td&gt;\n\t\t\t\t\t\t&lt;td&gt;Peter James \n              &lt;b&gt;Chalmers&lt;/b&gt; (&amp;quot;Jim&amp;quot;)\n            &lt;/td&gt;\n\t\t\t\t\t&lt;/tr&gt;\n\t\t\t\t\t&lt;tr&gt;\n\t\t\t\t\t\t&lt;td&gt;Address&lt;/td&gt;\n\t\t\t\t\t\t&lt;td&gt;534 Erewhon, Pleasantville, Vic, 3999&lt;/td&gt;\n\t\t\t\t\t&lt;/tr&gt;\n\t\t\t\t\t&lt;tr&gt;\n\t\t\t\t\t\t&lt;td&gt;Contacts&lt;/td&gt;\n\t\t\t\t\t\t&lt;td&gt;Home: unknown. Work: (03) 5555 6473&lt;/td&gt;\n\t\t\t\t\t&lt;/tr&gt;\n\t\t\t\t\t&lt;tr&gt;\n\t\t\t\t\t\t&lt;td&gt;Id&lt;/td&gt;\n\t\t\t\t\t\t&lt;td&gt;MRN: 12345 (Acme Healthcare)&lt;/td&gt;\n\t\t\t\t\t&lt;/tr&gt;\n\t\t\t\t&lt;/tbody&gt;\n\t\t\t&lt;/table&gt;\n\t\t&lt;/div&gt;&quot;
    },
    &quot;identifier&quot;: [
      {
        &quot;use&quot;: &quot;usual&quot;,
        &quot;type&quot;: {
          &quot;coding&quot;: [
            {
              &quot;system&quot;: &quot;http://terminology.hl7.org/CodeSystem/v2-0203&quot;,
              &quot;code&quot;: &quot;MR&quot;
            }
          ]
        },
        &quot;system&quot;: &quot;urn:oid:1.2.36.146.595.217.0.1&quot;,
        &quot;value&quot;: &quot;12345&quot;,
        &quot;period&quot;: {
          &quot;start&quot;: &quot;2001-05-06&quot;
        },
        &quot;assigner&quot;: {
          &quot;display&quot;: &quot;Acme Healthcare&quot;
        }
      }
    ],
    &quot;active&quot;: true,
    &quot;name&quot;: [
      {
        &quot;use&quot;: &quot;official&quot;,
        &quot;family&quot;: &quot;Chalmers&quot;,
        &quot;given&quot;: [
          &quot;Peter&quot;,
          &quot;James&quot;
        ]
      },
      {
        &quot;use&quot;: &quot;usual&quot;,
        &quot;given&quot;: [
          &quot;Jim&quot;
        ]
      },
      {
        &quot;use&quot;: &quot;maiden&quot;,
        &quot;family&quot;: &quot;Windsor&quot;,
        &quot;given&quot;: [
          &quot;Peter&quot;,
          &quot;James&quot;
        ],
        &quot;period&quot;: {
          &quot;end&quot;: &quot;2002&quot;
        }
      }
    ],
    &quot;telecom&quot;: [
      {
        &quot;use&quot;: &quot;home&quot;
      },
      {
        &quot;system&quot;: &quot;phone&quot;,
        &quot;value&quot;: &quot;(03) 5555 6473&quot;,
        &quot;use&quot;: &quot;work&quot;,
        &quot;rank&quot;: 1
      },
      {
        &quot;system&quot;: &quot;phone&quot;,
        &quot;value&quot;: &quot;(03) 3410 5613&quot;,
        &quot;use&quot;: &quot;mobile&quot;,
        &quot;rank&quot;: 2
      },
      {
        &quot;system&quot;: &quot;phone&quot;,
        &quot;value&quot;: &quot;(03) 5555 8834&quot;,
        &quot;use&quot;: &quot;old&quot;,
        &quot;period&quot;: {
          &quot;end&quot;: &quot;2014&quot;
        }
      }
    ],
    &quot;gender&quot;: &quot;male&quot;,
    &quot;birthDate&quot;: &quot;1974-12-25&quot;,
    &quot;_birthDate&quot;: {
      &quot;extension&quot;: [
        {
          &quot;url&quot;: &quot;http://hl7.org/fhir/StructureDefinition/patient-birthTime&quot;,
          &quot;valueDateTime&quot;: &quot;1974-12-25T14:35:45-05:00&quot;
        }
      ]
    },
    &quot;deceasedBoolean&quot;: false,
    &quot;address&quot;: [
      {
        &quot;use&quot;: &quot;home&quot;,
        &quot;type&quot;: &quot;both&quot;,
        &quot;text&quot;: &quot;534 Erewhon St PeasantVille, Rainbow, Vic  3999&quot;,
        &quot;line&quot;: [
          &quot;534 Erewhon St&quot;
        ],
        &quot;city&quot;: &quot;PleasantVille&quot;,
        &quot;district&quot;: &quot;Rainbow&quot;,
        &quot;state&quot;: &quot;Vic&quot;,
        &quot;postalCode&quot;: &quot;3999&quot;,
        &quot;period&quot;: {
          &quot;start&quot;: &quot;1974-12-25&quot;
        }
      }
    ],
    &quot;contact&quot;: [
      {
        &quot;relationship&quot;: [
          {
            &quot;coding&quot;: [
              {
                &quot;system&quot;: &quot;http://terminology.hl7.org/CodeSystem/v2-0131&quot;,
                &quot;code&quot;: &quot;N&quot;
              }
            ]
          }
        ],
        &quot;name&quot;: {
          &quot;family&quot;: &quot;du Marché&quot;,
          &quot;_family&quot;: {
            &quot;extension&quot;: [
              {
                &quot;url&quot;: &quot;http://hl7.org/fhir/StructureDefinition/humanname-own-prefix&quot;,
                &quot;valueString&quot;: &quot;VV&quot;
              }
            ]
          },
          &quot;given&quot;: [
            &quot;Bénédicte&quot;
          ]
        },
        &quot;telecom&quot;: [
          {
            &quot;system&quot;: &quot;phone&quot;,
            &quot;value&quot;: &quot;+33 (237) 998327&quot;
          }
        ],
        &quot;address&quot;: {
          &quot;use&quot;: &quot;home&quot;,
          &quot;type&quot;: &quot;both&quot;,
          &quot;line&quot;: [
            &quot;534 Erewhon St&quot;
          ],
          &quot;city&quot;: &quot;PleasantVille&quot;,
          &quot;district&quot;: &quot;Rainbow&quot;,
          &quot;state&quot;: &quot;Vic&quot;,
          &quot;postalCode&quot;: &quot;3999&quot;,
          &quot;period&quot;: {
            &quot;start&quot;: &quot;1974-12-25&quot;
          }
        },
        &quot;gender&quot;: &quot;female&quot;,
        &quot;period&quot;: {
          &quot;start&quot;: &quot;2012&quot;
        }
      }
    ],
    &quot;managingOrganization&quot;: {
      &quot;reference&quot;: &quot;Organization/1&quot;
    }
  }
  
  </code></pre>
  <p>However, when I'm trying to look at mongo collections, I'm only getting:</p>
  <pre><code>&gt; db.Patient_4_0_0.find();
  { &quot;_id&quot; : &quot;example&quot;, &quot;id&quot; : &quot;example&quot;, &quot;meta&quot; : { &quot;versionId&quot; : &quot;1&quot;, &quot;lastUpdated&quot; : &quot;2021-04-22T12:35:57+00:00&quot; }, &quot;resourceType&quot; : &quot;Patient&quot; }
  </code></pre>
  <p>Any other data is stored.</p>
  <p>Any ideas?</p>