# Exercise In this exercise you will create your own ValueSets and include these in your profile. Here below are a couple of links that you may find useful during this exercise: * [Download Forge](https://simplifier.net/forge/download "Download Forge") (if you did not already do so) * [Create ValueSets](http://ontoserver.csiro.au/snapper2-dev/index.html#/ "Snapper") * https://www.hl7.org/fhir/v3/RoleCode/cs.html ## Steps to follow ### 1. Customize your ValueSet for family relationship 1. Take a look at the specification if you can reuse an existing CodeSystem or ValueSet for relationship codes. 2. Use [Snapper](http://ontoserver.csiro.au/snapper2-dev/index.html#/ "Open Snapper") to create your ValueSet. Of course you may use any other tool that you like, but in this assignment we will assume the use of Snapper. * In the menu on the left, click on the `+` on the right of FHIR Value Sets to create your ValueSet. * Complete the `Name`, `URL` and `Description` fields (e.g. name=MyRelationshipCodes, URL=https://example.org/fhir/ValueSet/MyRelationshipCodes) 3. Use the filter element to include only family member codes by following the steps below. * Complete the `Code System` field with the URL of the system you want to select codes from. * Complete the `Property`, `Operation` and `Value` fields in the first row to add the filter criterium. Hint: these codes will have an is-a relationship with the code fammemb. 4. Exclude in-law codes by following the steps below. * Scroll down until the end of the page and click on `+ Exclude Filter`. * Complete the `Code System` field with the URL of the system you want to exclude codes from. * Complete the `Property`, `Operation` and `Value` fields in the first row to add the filter criterium. Hint: these codes will have an is-a relationship with the code inlaw. 5. Go to `Upload to FHIR server` and choose `Validate Value Set`. You may also upload your ValueSet to a FHIR server in this step. Click on `Download Value Set` to download and save the JSON code of your created ValueSet. ### 2. Use your customized ValueSet in your own profile 1. Open Forge and create a new profile. Choose the basis resource that is best fit for exchanging family history. 2. Bind the element that captures family relationship to your own ValueSet. 3. Change the binding strength to only allow codes from your ValueSet.