<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="patient-username" />
  <url value="http://clouddx.com/fhir/StructureDefinition/patient-username" />
  <version value="0.1" />
  <name value="PatientUsernameExtension" />
  <title value="Patient username" />
  <status value="active" />
  <date value="2023-07-13" />
  <description value="This username is associated with the patient for the purpose of identifying him/her into different apps they will use and to share this username between parties that will manage usernames and identify the patient by username" />
  <kind value="complex-type" />
  <abstract value="false" />
  <context>
    <type value="element" />
    <expression value="Patient" />
  </context>
  <type value="Extension" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Extension" />
  <derivation value="constraint" />
  <differential>
    <element id="Extension">
      <path value="Extension" />
      <short value="Patient username" />
      <definition value="This username is associated with the patient for the purpose of identifying him/her into different apps they will use and to share this username between parties that will manage usernames and identify the patient by username" />
      <mustSupport value="true" />
      <isModifier value="false" />
    </element>
    <element id="Extension.url">
      <path value="Extension.url" />
      <fixedUri value="http://clouddx.com/fhir/StructureDefinition/patient-username" />
    </element>
    <element id="Extension.valueString">
      <path value="Extension.valueString" />
      <short value="The string value" />
      <min value="1" />
      <type>
        <code value="string" />
      </type>
      <mustSupport value="true" />
    </element>
  </differential>
</StructureDefinition>