{
  "resourceType": "StructureDefinition",
  "id": "Membership",
  "url": "https://haste-health.com/StructureDefinition/Membership",
  "version": "4.0.1",
  "name": "Membership",
  "status": "active",
  "publisher": "haste-health",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Membership",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Resource",
  "description": "A Membership resource is used to represent a user's membership in a project. This resource can link to an AccessPolicy resource to define the user's access rights within a project.",
  "derivation": "specialization",
  "snapshot": {
    "element": [
      {
        "id": "Membership",
        "path": "Membership",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Membership",
          "min": 0,
          "max": "*"
        },
        "isModifier": false,
        "isSummary": false
      },
      {
        "id": "Membership.id",
        "path": "Membership.id",
        "short": "Logical id of this artifact",
        "definition": "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
        "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Resource.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "string"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Membership.meta",
        "path": "Membership.meta",
        "short": "Metadata about the resource",
        "definition": "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Resource.meta",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Meta"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Membership.link",
        "path": "Membership.link",
        "short": "The clinical resource linked to this Membership.",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Patient",
              "http://hl7.org/fhir/StructureDefinition/Practitioner",
              "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
              "http://hl7.org/fhir/StructureDefinition/Person"
            ]
          }
        ],
        "min": 0,
        "max": "1"
      },
      {
        "id": "Membership.user",
        "path": "Membership.user",
        "short": "The user associated with this Membership.",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://haste-health.com/StructureDefinition/User"
            ]
          }
        ],
        "min": 1,
        "max": "1"
      }
    ]
  }
}