Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejava
titleCreation of a patient (Java) using defined operation using the HAPI FHIR client framework
	    Parameters in = new Parameters();
		    in.addParameter().setName("ssncrn").setValue(new Identifier().setSystem("urn:oid:1.2.208.176.1.2").setValue("2810887020"));
  	      in.addParameter().setName("managingOrganization").setValue(new Reference()
	    	    .setIdentifier(new Identifier().setSystem("urn:oid:1.2.208.176.1.1").setValue("260481000016005")));
    	    in.addParameter().setName("policy").setValue(new UriType().setValue("https://danskelove.dk/sundhedsloven"));

	        Parameters result = client.operation().onType(Patient.class).named("createPatientcreatePatientFromPerson")
	            	    .withParameters(in).execute();

...