{
    "resourceType": "StructureDefinition",
    "id": "MeineAdresse",
    "url": "http://example.org/StructureDefinition/MeineAdresse",
    "name": "MeineAdresse",
    "status": "active",
    "fhirVersion": "4.0.1",
    "mapping":  [
        {
            "identity": "v2",
            "uri": "http://hl7.org/v2",
            "name": "HL7 v2 Mapping"
        },
        {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM Mapping"
        },
        {
            "identity": "servd",
            "uri": "http://www.omg.org/spec/ServD/1.0/",
            "name": "ServD"
        },
        {
            "identity": "vcard",
            "uri": "http://w3.org/vcard",
            "name": "vCard Mapping"
        }
    ],
    "kind": "complex-type",
    "abstract": false,
    "type": "Address",
    "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Address",
    "derivation": "constraint",
    "differential": {
        "element":  [
            {
                "id": "Address.line",
                "path": "Address.line",
                "short": "Hallooooo",
                "comment": "Hallo Welt",
                "min": 1,
                "mustSupport": true
            },
            {
                "id": "Address.city",
                "path": "Address.city",
                "min": 1,
                "mustSupport": true
            },
            {
                "id": "Address.postalCode",
                "path": "Address.postalCode",
                "min": 1,
                "mustSupport": true
            }
        ]
    }
}
{
    "resourceType": "StructureDefinition",
    "id": "MeinPatient",
    "extension":  [
        {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
            "valueString": "Base.Individuals"
        },
        {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
            "valueCode": "patient"
        }
    ],
    "url": "http://example.org/StructureDefinition/MeinPatient",
    "name": "MeinPatient",
    "status": "active",
    "fhirVersion": "4.0.1",
    "mapping":  [
        {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM Mapping"
        },
        {
            "identity": "cda",
            "uri": "http://hl7.org/v3/cda",
            "name": "CDA (R2)"
        },
        {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/fivews",
            "name": "FiveWs Pattern Mapping"
        },
        {
            "identity": "v2",
            "uri": "http://hl7.org/v2",
            "name": "HL7 v2 Mapping"
        },
        {
            "identity": "loinc",
            "uri": "http://loinc.org",
            "name": "LOINC code for the element"
        }
    ],
    "kind": "resource",
    "abstract": false,
    "type": "Patient",
    "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Patient",
    "derivation": "constraint",
    "differential": {
        "element":  [
            {
                "id": "Patient.name",
                "path": "Patient.name",
                "min": 1,
                "mustSupport": true
            },
            {
                "id": "Patient.name.family",
                "path": "Patient.name.family",
                "min": 1,
                "mustSupport": true
            },
            {
                "id": "Patient.name.given",
                "path": "Patient.name.given",
                "min": 1,
                "mustSupport": true
            },
            {
                "id": "Patient.gender",
                "path": "Patient.gender",
                "alias":  [
                    "Geschlecht",
                    "Sex"
                ],
                "min": 1,
                "mustSupport": true
            },
            {
                "id": "Patient.birthDate",
                "path": "Patient.birthDate",
                "min": 1,
                "mustSupport": true
            },
            {
                "id": "Patient.address",
                "path": "Patient.address",
                "min": 1,
                "type":  [
                    {
                        "code": "Address",
                        "profile":  [
                            "http://example.org/StructureDefinition/MeineAdresse"
                        ]
                    }
                ],
                "mustSupport": true
            }
        ]
    }
}
{
    "resourceType": "Patient",
    "id": "MeinBeispielPatient",
    "meta": {
        "profile":  [
            "http://example.org/StructureDefinition/MeinPatient"
        ]
    },
    "name":  [
        {
            "given":  [
                "Simone"
            ],
            "family": "Heckmann"
        }
    ],
    "birthDate": "1980-09-02",
    "gender": "female",
    "address":  [
        {
            "line":  [
                "Teststr. 4"
            ],
            "postalCode": "12345",
            "city": "Musterhausen"
        }
    ]
}